/// <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; }
/// <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 prepared polygon</param> public PreparedPolygonIntersects(PreparedPolygon prepPoly) : base(prepPoly) { }
/// <summary> /// Computes the intersects 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 intersects the geometry</returns> public static bool Intersects(PreparedPolygon prep, Geometry 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> public PreparedPolygonContainsProperly(PreparedPolygon prepPoly) : base(prepPoly) { }
/// <summary>Computes the <c>containsProperly</c> 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 properly contains the geometry</returns> public static bool ContainsProperly(PreparedPolygon prep, Geometry geom) { var polyInt = new PreparedPolygonContainsProperly(prep); return(polyInt.ContainsProperly(geom)); }