public override bool ContainsProperly(IGeometry g) { // short-circuit test if (!EnvelopeCovers(g)) { return(false); } return(PreparedPolygonContainsProperly.ContainsProperly(this, g)); }
///<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)); }