///<summary> /// Creates an instance of this operation. ///</summary> /// <param name="prepPoly">The PreparedPolygon to evaluate</param> public PreparedPolygonCovers(PreparedPolygon prepPoly) : base(prepPoly) { RequireSomePointInInterior = false; }
///<summary> /// Creates an instance of this operation. /// </summary> /// <param name="prepPoly">The PreparedPolygon to evaluate</param> protected AbstractPreparedPolygonContains(PreparedPolygon prepPoly) : base(prepPoly) { }
///<summary> /// Creates an instance of this operation. ///</summary> /// <param name="prepPoly">The PreparedPolygon to evaluate</param> public PreparedPolygonContainsProperly(PreparedPolygon prepPoly) : base(prepPoly) { }
///<summary> /// Computes the <c>Covers</c> spatial relationship predicate for a <see cref="PreparedPolygon"/> relative to all other <see cref="IGeometry"/> classes. ///</summary> /// <param name="prep">The prepared polygon</param> /// <param name="geom">A test geometry</param> /// <returns>true if the polygon covers the geometry</returns> public static bool Covers(PreparedPolygon prep, IGeometry geom) { PreparedPolygonCovers polyInt = new PreparedPolygonCovers(prep); return(polyInt.Covers(geom)); }
///<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)); }
///<summary> /// Creates an instance of this operation. ///</summary> /// <param name="prepPoly">the PreparedPolygon to evaluate</param> public PreparedPolygonContains(PreparedPolygon prepPoly) : base(prepPoly) { }
///<summary> /// Creates an instance of this operation. ///</summary> /// <param name="prepPoly">The prepared polygon</param> public PreparedPolygonIntersects(PreparedPolygon prepPoly) : base(prepPoly) { }
///<summary> /// Computes the intersects 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 intersects the geometry</returns> public static bool Intersects(PreparedPolygon prep, IGeometry geom) { var polyInt = new PreparedPolygonIntersects(prep); return(polyInt.Intersects(geom)); }
///<summary> /// Creates an instance of this operation. ///</summary> /// <param name="prepPoly">the PreparedPolygon to evaluate</param> protected PreparedPolygonPredicate(PreparedPolygon prepPoly) { this.prepPoly = prepPoly; _targetPointLocator = prepPoly.PointLocator; }