Esempio n. 1
0
 @Test
 public void test() {
   Segment2D<Integer> s = Segment2D.create(Point2D.create(0, 0), Point2D.create(10, 0));
   assertTrue(PointOnSegment2D.isOn(Point2D.create(0, 0), s, NS));
   assertTrue(PointOnSegment2D.isOn(Point2D.create(5, 0), s, NS));
   assertFalse(PointOnSegment2D.isOn(Point2D.create(11, 0), s, NS));
 }