예제 #1
0
 void checkOrientationIndex(
     LineSegment seg, double s0x, double s0y, double s1x, double s1y, int expectedOrient) {
   LineSegment seg2 = new LineSegment(s0x, s0y, s1x, s1y);
   int orient = seg.orientationIndex(seg2);
   assertTrue(orient == expectedOrient);
 }
예제 #2
0
 void checkOrientationIndex(LineSegment seg, double px, double py, int expectedOrient) {
   Coordinate p = new Coordinate(px, py);
   int orient = seg.orientationIndex(p);
   assertTrue(orient == expectedOrient);
 }