/// <summary> /// Computes the canonical orientation for a coordinate array. /// </summary> /// <param name="pts"></param> /// <returns> /// <c>true</c> if the points are oriented forwards, or /// <c>false</c>if the points are oriented in reverse. /// </returns> private static bool Orientation(IList<Coordinate> pts) { return CoordinateArrays.IncreasingDirection(pts) == 1; }
/// <summary> /// Computes the canonical orientation for a coordinate array. /// </summary> /// <param name="pts"></param> /// <returns> /// <c>true</c> if the points are oriented forwards <br/> /// or <c>false</c>if the points are oriented in reverse. /// </returns> private static bool Orientation(Coordinate[] pts) { return(CoordinateArrays.IncreasingDirection(pts) == 1); }