Search Results for

    Show / Hide Table of Contents

    Class QuadrantOp

    Utility functions for working with quadrants, which are numbered as follows:

    1 | 0 --+-- 2 | 3

    Inheritance
    object
    QuadrantOp
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: NetTopologySuite.GeometriesGraph
    Assembly: NetTopologySuite.dll
    Syntax
    [Obsolete("Use NetTopologySuite.Geometries.Quadrant")]
    public class QuadrantOp

    Fields

    | Edit this page View Source

    NE

    North-East

    Declaration
    public static readonly int NE
    Field Value
    Type Description
    int
    | Edit this page View Source

    NW

    North-West

    Declaration
    public static readonly int NW
    Field Value
    Type Description
    int
    | Edit this page View Source

    SE

    South-East

    Declaration
    public static readonly int SE
    Field Value
    Type Description
    int
    | Edit this page View Source

    SW

    South-West

    Declaration
    public static readonly int SW
    Field Value
    Type Description
    int

    Methods

    | Edit this page View Source

    CommonHalfPlane(int, int)

    Returns the right-hand quadrant of the halfplane defined by the two quadrants, or -1 if the quadrants are opposite, or the quadrant if they are identical.

    Declaration
    public static int CommonHalfPlane(int quad1, int quad2)
    Parameters
    Type Name Description
    int quad1
    int quad2
    Returns
    Type Description
    int
    | Edit this page View Source

    IsInHalfPlane(int, int)

    Returns whether the given quadrant lies within the given halfplane (specified by its right-hand quadrant).

    Declaration
    public static bool IsInHalfPlane(int quad, int halfPlane)
    Parameters
    Type Name Description
    int quad
    int halfPlane
    Returns
    Type Description
    bool
    | Edit this page View Source

    IsNorthern(int)

    Returns true if the given quadrant is 0 or 1.

    Declaration
    public static bool IsNorthern(int quad)
    Parameters
    Type Name Description
    int quad
    Returns
    Type Description
    bool
    | Edit this page View Source

    IsOpposite(int, int)

    Returns true if the quadrants are 1 and 3, or 2 and 4.

    Declaration
    public static bool IsOpposite(int quad1, int quad2)
    Parameters
    Type Name Description
    int quad1
    int quad2
    Returns
    Type Description
    bool
    | Edit this page View Source

    Quadrant(Coordinate, Coordinate)

    Returns the quadrant of a directed line segment from p0 to p1.

    Declaration
    public static int Quadrant(Coordinate p0, Coordinate p1)
    Parameters
    Type Name Description
    Coordinate p0
    Coordinate p1
    Returns
    Type Description
    int
    Exceptions
    Type Condition
    ArgumentException

    if the points are equal

    | Edit this page View Source

    Quadrant(double, double)

    Returns the quadrant of a directed line segment (specified as x and y displacements, which cannot both be 0).

    Declaration
    public static int Quadrant(double dx, double dy)
    Parameters
    Type Name Description
    double dx
    double dy
    Returns
    Type Description
    int
    Exceptions
    Type Condition
    ArgumentException

    If the displacements are both 0

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