Search Results for

    Show / Hide Table of Contents

    Class RectangleContains

    Optimized implementation of spatial predicate "contains" for cases where the first Geometry is a rectangle. As a further optimization, this class can be used directly to test many geometries against a single rectangle.

    Inheritance
    object
    RectangleContains
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: NetTopologySuite.Operation.Predicate
    Assembly: NetTopologySuite.dll
    Syntax
    public class RectangleContains

    Constructors

    | Edit this page View Source

    RectangleContains(Polygon)

    Create a new contains computer for two geometries.

    Declaration
    public RectangleContains(Polygon rectangle)
    Parameters
    Type Name Description
    Polygon rectangle

    A rectangular geometry.

    Methods

    | Edit this page View Source

    Contains(Geometry)

    Declaration
    public bool Contains(Geometry geom)
    Parameters
    Type Name Description
    Geometry geom
    Returns
    Type Description
    bool
    | Edit this page View Source

    Contains(Polygon, Geometry)

    Declaration
    public static bool Contains(Polygon rectangle, Geometry b)
    Parameters
    Type Name Description
    Polygon rectangle
    Geometry b
    Returns
    Type Description
    bool
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX