return CGAlgorithmsDD.orientationIndex(p1, p2, q);
return CGAlgorithmsDD.orientationIndex(p1, p2, q);
public static boolean isAllOrientationsEqualDD(Coordinate[] pts) { int orient0 = CGAlgorithmsDD.orientationIndex(pts[0], pts[1], pts[2]); int orient1 = CGAlgorithmsDD.orientationIndex(pts[1], pts[2], pts[0]); int orient2 = CGAlgorithmsDD.orientationIndex(pts[2], pts[0], pts[1]); return orient0 == orient1 && orient0 == orient2; }