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

Test distanceTo

parent ac21b4b3
Branches
No related tags found
No related merge requests found
......@@ -33,4 +33,11 @@ public class SphereTest {
assertEquals(3.0, mySphere.distanceSquaredTo(otherSphere), 0.0);
}
@Test
public void testDistanceTo(){
Sphere mySphere = new Sphere(1.5);
Sphere otherSphere = new Sphere(1.5, new Point3d(1.0, 1.0, 1.0));
assertEquals(1.7320508075688772, mySphere.distanceTo(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