コード例 #1
0
 /// <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;
 }
コード例 #2
0
 /// <summary>
 /// Creates an instance of this operation.
 /// </summary>
 /// <param name="prepPoly">The PreparedPolygon to evaluate</param>
 protected AbstractPreparedPolygonContains(PreparedPolygon prepPoly)
     : base(prepPoly)
 {
 }
コード例 #3
0
 /// <summary>
 /// Creates an instance of this operation.
 /// </summary>
 /// <param name="prepPoly">The prepared polygon</param>
 public PreparedPolygonIntersects(PreparedPolygon prepPoly) :
     base(prepPoly)
 {
 }
コード例 #4
0
        /// <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));
        }
コード例 #5
0
 /// <summary>
 /// Creates an instance of this operation.
 /// </summary>
 /// <param name="prepPoly">The PreparedPolygon to evaluate</param>
 public PreparedPolygonContainsProperly(PreparedPolygon prepPoly)
     : base(prepPoly)
 {
 }
コード例 #6
0
        /// <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));
        }