Class QuadrantOp
Utility functions for working with quadrants, which are numbered as follows:
1 | 0
--+--
2 | 3
Assembly: NetTopologySuite.dll
Syntax
[Obsolete("Use NetTopologySuite.Geometries.Quadrant")]
public class QuadrantOp
Fields
|
Improve this Doc
View Source
NE
Declaration
public static readonly int NE
Field Value
|
Improve this Doc
View Source
NW
Declaration
public static readonly int NW
Field Value
|
Improve this Doc
View Source
SE
Declaration
public static readonly int SE
Field Value
|
Improve this Doc
View Source
SW
Declaration
public static readonly int SW
Field Value
Methods
|
Improve this Doc
View Source
CommonHalfPlane(Int32, Int32)
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
Returns
|
Improve this Doc
View Source
IsInHalfPlane(Int32, Int32)
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
Returns
|
Improve this Doc
View Source
IsNorthern(Int32)
Returns true if the given quadrant is 0 or 1.
Declaration
public static bool IsNorthern(int quad)
Parameters
Type |
Name |
Description |
Int32 |
quad |
|
Returns
|
Improve this Doc
View Source
IsOpposite(Int32, Int32)
Returns true if the quadrants are 1 and 3, or 2 and 4.
Declaration
public static bool IsOpposite(int quad1, int quad2)
Parameters
Returns
|
Improve this Doc
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
Returns
Exceptions
|
Improve this Doc
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
Returns
Exceptions