assertEquals(GeometryTestData.PYRAMID, pyramid);
}
@Test
public void testHitPoints() {
Ray xyRay = new Ray(new Point(3, 3, -5), new Point(0, 0, 2));
assertEquals(new HitPoint(new Point(3,3,0), 5), GeometryTestData.PYRAMID.getHitPoint(xyRay));
Ray yzRay = new Ray(new Point(-10, 3, 3), new Point(2, 0, 0));
assertEquals(new HitPoint(new Point(0, 3, 3), 10), GeometryTestData.PYRAMID.getHitPoint(yzRay));
Ray xzRay = new Ray(new Point(3, -5, 3), new Point(0, 2, 0));
assertEquals(new HitPoint(new Point(3, 0, 3), 5), GeometryTestData.PYRAMID.getHitPoint(xzRay));
}