Utility functions for working with quadrants.
More...
#include <Quadrant.h>
|
static const int | NE = 0 |
|
static const int | NW = 1 |
|
static const int | SW = 2 |
|
static const int | SE = 3 |
|
Utility functions for working with quadrants.
The quadrants are numbered as follows:
1 | 0
–+–
2 | 3
Definition at line 50 of file Quadrant.h.
static int geos::geom::Quadrant::commonHalfPlane |
( |
int |
quad1, |
|
|
int |
quad2 |
|
) |
| |
|
static |
static bool geos::geom::Quadrant::isInHalfPlane |
( |
int |
quad, |
|
|
int |
halfPlane |
|
) |
| |
|
static |
Returns whether the given quadrant lies within the given halfplane (specified by its right-hand quadrant).
static bool geos::geom::Quadrant::isNorthern |
( |
int |
quad | ) |
|
|
static |
Returns true if the given quadrant is 0 or 1.
static bool geos::geom::Quadrant::isOpposite |
( |
int |
quad1, |
|
|
int |
quad2 |
|
) |
| |
|
static |
Returns true if the quadrants are 1 and 3, or 2 and 4
static int geos::geom::Quadrant::quadrant |
( |
double |
dx, |
|
|
double |
dy |
|
) |
| |
|
static |
Returns the quadrant of a directed line segment (specified as x and y displacements, which cannot both be 0).
- Exceptions
-
IllegalArgumentException | if the displacements are both 0 |
Returns the quadrant of a directed line segment from p0 to p1.
- Exceptions
-
IllegalArgumentException | if the points are equal |
const int geos::geom::Quadrant::NE = 0 |
|
static |
const int geos::geom::Quadrant::NW = 1 |
|
static |
const int geos::geom::Quadrant::SE = 3 |
|
static |
const int geos::geom::Quadrant::SW = 2 |
|
static |
The documentation for this class was generated from the following file: