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

Test inCOntactWith

parent 74f59cfc
Branches
No related tags found
No related merge requests found
Pipeline #10486 passed
...@@ -40,4 +40,11 @@ public class SphereTest { ...@@ -40,4 +40,11 @@ public class SphereTest {
assertEquals(1.7320508075688772, mySphere.distanceTo(otherSphere), 0.0); assertEquals(1.7320508075688772, mySphere.distanceTo(otherSphere), 0.0);
} }
@Test
public void testInContactWith(){
Sphere mySphere = new Sphere(1.5);
Sphere otherSphere = new Sphere(1.5, new Point3d(1.0, 1.0, 1.0));
assertTrue(mySphere.inContactWith(otherSphere));
}
} }
\ 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