Skip to content
Snippets Groups Projects
Commit ac21b4b3 authored by Noah Mandler's avatar Noah Mandler
Browse files

Test distanceSquaredTo

parent 2d6de59b
No related branches found
No related tags found
No related merge requests found
......@@ -26,4 +26,11 @@ public class SphereTest {
assertEquals(new Point3d(0.0, 0.0, 0.0), mySphere.getPos());
}
@Test
public void testDistanceSquaredTo() {
Sphere mySphere = new Sphere(1.5);
Sphere otherSphere = new Sphere(1.5, new Point3d(1.0, 1.0, 1.0));
assertEquals(3.0, mySphere.distanceSquaredTo(otherSphere), 0.0);
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment