Search Results for

    Show / Hide Table of Contents

    Class RectangleLineIntersector

    Computes whether a rectangle intersects line segments.

    Inheritance
    object
    RectangleLineIntersector
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: NetTopologySuite.Algorithm
    Assembly: NetTopologySuite.dll
    Syntax
    public class RectangleLineIntersector
    Remarks

    Rectangles contain a large amount of inherent symmetry (or to put it another way, although they contain four coordinates they only actually contain 4 ordinates worth of information). The algorithm used takes advantage of the symmetry of the geometric situation to optimize performance by minimizing the number of line intersection tests.

    Constructors

    | Edit this page View Source

    RectangleLineIntersector(Envelope)

    Creates a new intersector for the given query rectangle, specified as an Envelope.

    Declaration
    public RectangleLineIntersector(Envelope rectEnv)
    Parameters
    Type Name Description
    Envelope rectEnv

    The query rectangle, specified as an Envelope

    Methods

    | Edit this page View Source

    Intersects(Coordinate, Coordinate)

    Tests whether the query rectangle intersects a given line segment.

    Declaration
    public bool Intersects(Coordinate p0, Coordinate p1)
    Parameters
    Type Name Description
    Coordinate p0

    The first endpoint of the segment

    Coordinate p1

    The second endpoint of the segment

    Returns
    Type Description
    bool

    true if the rectangle intersects the segment

    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX