/// <summary>
        /// Computes the <c>contains</c> spatial relationship predicate between a <see cref="PreparedPolygon"/> and a <see cref="Geometry"/>.
        /// </summary>
        /// <param name="prep">The prepared polygon</param>
        /// <param name="geom">A test geometry</param>
        /// <returns>true if the polygon contains the geometry</returns>
        public static bool Contains(PreparedPolygon prep, Geometry geom)
        {
            var polyInt = new PreparedPolygonContains(prep);

            return(polyInt.Contains(geom));
        }
 /// <summary>
 /// Creates an instance of this operation.
 /// </summary>
 /// <param name="prepPoly">the PreparedPolygon to evaluate</param>
 public PreparedPolygonContains(PreparedPolygon prepPoly)
     : base(prepPoly)
 {
 }
Exemplo n.º 3
0
 /// <summary>
 /// Creates an instance of this operation.
 /// </summary>
 /// <param name="prepPoly">The PreparedPolygon to evaluate</param>
 public PreparedPolygonCovers(PreparedPolygon prepPoly)
     : base(prepPoly)
 {
     RequireSomePointInInterior = false;
 }