public static boolean isAllOrientationsEqualRD(Coordinate[] pts) { int[] orient = new int[3]; orient[0] = RobustDeterminant.orientationIndex(pts[0], pts[1], pts[2]); orient[1] = RobustDeterminant.orientationIndex(pts[1], pts[2], pts[0]); orient[2] = RobustDeterminant.orientationIndex(pts[2], pts[0], pts[1]); return orient[0] == orient[1] && orient[0] == orient[2]; } }