public static bool IsAllOrientationsEqual( double p0x, double p0y, double p1x, double p1y, double p2x, double p2y) { Coordinate[] pts = { new Coordinate(p0x, p0y), new Coordinate(p1x, p1y), new Coordinate(p2x, p2y) }; if (!IsAllOrientationsEqualDD(pts)) { throw new InvalidOperationException("High-precision orientation computation FAILED"); } return(OrientationIndexTest.IsAllOrientationsEqual(pts)); }
public void TestSanity() { Assert.IsTrue(OrientationIndexTest.IsAllOrientationsEqual( OrientationIndexTest.GetCoordinates("LINESTRING ( 0 0, 0 1, 1 1)"))); }
private static void CheckOriginalJTS(Coordinate[] pts, bool expected) { Assert.IsTrue(expected == OrientationIndexTest.IsAllOrientationsEqual(pts), "NTS Robust FAIL"); }