コード例 #1
0
 public override bool ContainsProperly(IGeometry g)
 {
     // short-circuit test
     if (!EnvelopeCovers(g))
     {
         return(false);
     }
     return(PreparedPolygonContainsProperly.ContainsProperly(this, g));
 }
コード例 #2
0
        ///<summary>Computes the <c>containsProperly</c> predicate between a <see cref="PreparedPolygon"/> and a <see cref="IGeometry"/>.
        ///</summary>
        /// <param name="prep">The prepared polygon</param>
        ///<param name="geom">A test geometry</param>
        /// <returns>true if the polygon properly contains the geometry</returns>
        public static bool ContainsProperly(PreparedPolygon prep, IGeometry geom)
        {
            PreparedPolygonContainsProperly polyInt = new PreparedPolygonContainsProperly(prep);

            return(polyInt.ContainsProperly(geom));
        }