Class: Quadrant

jsts.geomgraph.Quadrant

new Quadrant()

Utility functions for working with quadrants, which are numbered as follows:
1 | 0
--+--
2 | 3
<pre>
Source:

Methods

(static) commonHalfPlane()

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.
Source:

(static) isInHalfPlane()

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

(static) isNorthern()

Returns true if the given quadrant is 0 or 1.
Source:

(static) isOpposite()

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

(static) quadrant()

Returns the quadrant of a directed line segment (specified as x and y displacements, which cannot both be 0).
Source:
Throws:
IllegalArgumentException if the displacements are both 0

(static) quadrant2()

Returns the quadrant of a directed line segment from p0 to p1.
Source:
Throws:
IllegalArgumentException if the points are equal