| java.lang.Object com.vividsolutions.jts.geomgraph.Quadrant
Quadrant | public class Quadrant (Code) | | Utility functions for working with quadrants, which are numbered as follows:
1 | 0
--+--
2 | 3
version: 1.7 |
Method Summary | |
public static int | commonHalfPlane(int quad1, int quad2) 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. | public static boolean | isInHalfPlane(int quad, int halfPlane) Returns whether the given quadrant lies within the given halfplane (specified
by its right-hand quadrant). | public static boolean | isNorthern(int quad) Returns true if the given quadrant is 0 or 1. | public static boolean | isOpposite(int quad1, int quad2) | public static int | quadrant(double dx, double dy) Returns the quadrant of a directed line segment (specified as x and y
displacements, which cannot both be 0). | public static int | quadrant(Coordinate p0, Coordinate p1) Returns the quadrant of a directed line segment from p0 to p1. |
commonHalfPlane | public static int commonHalfPlane(int quad1, int quad2)(Code) | | 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.
|
isInHalfPlane | public static boolean isInHalfPlane(int quad, int halfPlane)(Code) | | Returns whether the given quadrant lies within the given halfplane (specified
by its right-hand quadrant).
|
isNorthern | public static boolean isNorthern(int quad)(Code) | | Returns true if the given quadrant is 0 or 1.
|
isOpposite | public static boolean isOpposite(int quad1, int quad2)(Code) | | Returns true if the quadrants are 1 and 3, or 2 and 4
|
quadrant | public static int quadrant(double dx, double dy)(Code) | | Returns the quadrant of a directed line segment (specified as x and y
displacements, which cannot both be 0).
|
quadrant | public static int quadrant(Coordinate p0, Coordinate p1)(Code) | | Returns the quadrant of a directed line segment from p0 to p1.
|
|
|