test_class.file: singa-mathematics/src/test/java/bio/singa/mathematics/geometry/bodies/SphereTest.java
test_class.identifier: SphereTest
test_case.body: @Test
      public void intersect() {
          Sphere sphere1 = new Sphere(new Vector3D(0.0, 0.0, 0.0), 1.0);
          Sphere sphere2 = new Sphere(new Vector3D(-1.0, 0.0, 0.0), 1.0);
          Sphere sphere3 = new Sphere(new Vector3D(-2.0, 0.0, 0.0), 1.0);
          assertTrue(sphere1.intersect(sphere2));
          assertFalse(sphere1.intersect(sphere3));
      }
test_case.class_method_signature: SphereTest.intersect()
test_case.full_signature: @Test public void intersect()
test_case.identifier: intersect
test_case.invocations: assertTrue intersect assertFalse intersect
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void intersect()
focal_class.declarator: center
focal_class.modifier: private final
focal_class.original_string: private final Vector3D center;
focal_class.type: Vector3D
focal_class.var_name: center
focal_class.declarator: radius
focal_class.modifier: private final
focal_class.original_string: private final double radius;
focal_class.type: double
focal_class.var_name: radius
focal_class.file: singa-mathematics/src/main/java/bio/singa/mathematics/geometry/bodies/Sphere.java
focal_class.identifier: Sphere
focal_class.class_method_signature: Sphere.Sphere(Vector3D center, double radius)
focal_class.full_signature: public  Sphere(Vector3D center, double radius)
focal_class.identifier: Sphere
focal_class.modifiers: public
focal_class.parameters: (Vector3D center, double radius)
focal_class.signature:  Sphere(Vector3D center, double radius)
focal_class.class_method_signature: Sphere.getCenter()
focal_class.full_signature: public Vector3D getCenter()
focal_class.identifier: getCenter
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Vector3D
focal_class.signature: Vector3D getCenter()
focal_class.class_method_signature: Sphere.getRadius()
focal_class.full_signature: public double getRadius()
focal_class.identifier: getRadius
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: double
focal_class.signature: double getRadius()
focal_class.class_method_signature: Sphere.getSurface()
focal_class.full_signature: public double getSurface()
focal_class.identifier: getSurface
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: double
focal_class.signature: double getSurface()
focal_class.class_method_signature: Sphere.getVolume()
focal_class.full_signature: public double getVolume()
focal_class.identifier: getVolume
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: double
focal_class.signature: double getVolume()
focal_class.class_method_signature: Sphere.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.class_method_signature: Sphere.intersect(Sphere sphere)
focal_class.full_signature: public boolean intersect(Sphere sphere)
focal_class.identifier: intersect
focal_class.modifiers: public
focal_class.parameters: (Sphere sphere)
focal_class.return: boolean
focal_class.signature: boolean intersect(Sphere sphere)
focal_method.body: public boolean intersect(Sphere sphere) {
          Vector3D difference = center.subtract(sphere.getCenter());
          return difference.dotProduct(difference) < Math.pow((radius + sphere.getRadius()), 2);
      }
focal_method.class_method_signature: Sphere.intersect(Sphere sphere)
focal_method.full_signature: public boolean intersect(Sphere sphere)
focal_method.identifier: intersect
focal_method.invocations: subtract getCenter dotProduct pow getRadius
focal_method.modifiers: public
focal_method.parameters: (Sphere sphere)
focal_method.return: boolean
focal_method.signature: boolean intersect(Sphere sphere)