Esempio n. 1
0
        /// <summary>
        /// Test the envelope defined by p1-p2 for intersection
        /// with the envelope defined by q1-q2
        /// </summary>
        /// <param name="p1">One extremal point of the envelope Point.</param>
        /// <param name="p2">Another extremal point of the envelope Point.</param>
        /// <param name="q1">One extremal point of the envelope Q.</param>
        /// <param name="q2">Another extremal point of the envelope Q.</param>
        /// <returns><c>true</c> if Q intersects Point</returns>
        public static bool Intersects(Coordinate p1, Coordinate p2, Coordinate q1, Coordinate q2)
        {
            Envelope a = new Envelope(p1, p2);
            Envelope b = new Envelope(q1, q2);

            return(a.Intersects(b));
        }
Esempio n. 2
0
 /// <summary>
 /// Test the envelope defined by p1-p2 for intersection
 /// with the envelope defined by q1-q2
 /// </summary>
 /// <param name="p1">One extremal point of the envelope Point.</param>
 /// <param name="p2">Another extremal point of the envelope Point.</param>
 /// <param name="q1">One extremal point of the envelope Q.</param>
 /// <param name="q2">Another extremal point of the envelope Q.</param>
 /// <returns><c>true</c> if Q intersects Point</returns>
 public static bool Intersects(Coordinate p1, Coordinate p2, Coordinate q1, Coordinate q2)
 {
     Envelope a = new Envelope(p1, p2);
     Envelope b = new Envelope(q1, q2);
     return a.Intersects(b);
 }
Esempio n. 3
0
 /// <summary>
 /// Test the point q to see whether it intersects the Envelope
 /// defined by p1-p2.
 /// </summary>
 /// <param name="p1">One extremal point of the envelope.</param>
 /// <param name="p2">Another extremal point of the envelope.</param>
 /// <param name="q">Point to test for intersection.</param>
 /// <returns><c>true</c> if q intersects the envelope p1-p2.</returns>
 public static bool Intersects(Coordinate p1, Coordinate p2, Coordinate q)
 {
     Envelope env = new Envelope(p1, p2);
     return env.Intersects(q);
 }
Esempio n. 4
0
 /// <summary>
 /// Determines if any portion of this segment intersects the specified extent.
 /// </summary>
 /// <param name="inEnvelope">The</param>
 /// <returns>Boolean, true if this line segment intersects the specified envelope</returns>
 public bool Intersects(Envelope inEnvelope)
 {
     return inEnvelope.Intersects(this);
 }
Esempio n. 5
0
 /// <summary>
 /// Determines if any portion of this segment intersects the specified extent.
 /// </summary>
 /// <param name="inEnvelope">The</param>
 /// <returns>Boolean, true if this line segment intersects the specified envelope</returns>
 public bool Intersects(Envelope inEnvelope)
 {
     return(inEnvelope.Intersects(this));
 }
Esempio n. 6
0
        /// <summary>
        /// Test the point q to see whether it intersects the Envelope
        /// defined by p1-p2.
        /// </summary>
        /// <param name="p1">One extremal point of the envelope.</param>
        /// <param name="p2">Another extremal point of the envelope.</param>
        /// <param name="q">Point to test for intersection.</param>
        /// <returns><c>true</c> if q intersects the envelope p1-p2.</returns>
        public static bool Intersects(Coordinate p1, Coordinate p2, Coordinate q)
        {
            Envelope env = new Envelope(p1, p2);

            return(env.Intersects(q));
        }