Пример #1
0
 /// <summary>
 /// Determines whether a point lies in the interior, on the boundary, or in the
 /// exterior of a ring.The ring may be oriented in either direction.
 /// <para/>
 /// This method does<i> not</i> first check the point against the envelope of
 /// the ring.
 /// </summary>
 /// <param name="p">The point to check for ring inclusion</param>
 /// <param name="ring">A <c>CoordinateSequence</c> representing the ring (which must have
 /// first point identical to last point)</param>
 public static Location LocateInRing(Coordinate p, ICoordinateSequence ring)
 {
     return(RayCrossingCounter.LocatePointInRing(p, ring));
 }
 ///<summary>
 /// Determines whether a point lies in the interior, on the boundary, or in the exterior of a ring.
 ///</summary>
 /// <remarks>
 /// <para>The ring may be oriented in either direction.</para>
 /// <para>This method does <i>not</i> first check the point against the envelope of the ring.</para>
 /// </remarks>
 /// <param name="p">Point to check for ring inclusion</param>
 /// <param name="ring">An array of coordinates representing the ring (which must have first point identical to last point)</param>
 /// <returns>The <see cref="Location"/> of p relative to the ring</returns>
 public static Location LocatePointInRing(Coordinate p, Coordinate[] ring)
 {
     return(RayCrossingCounter.LocatePointInRing(p, ring));
 }