#include <Quadrant.h>
Static Public Member Functions | |
| static int | quadrant (double dx, double dy) |
| static int | quadrant (const geom::Coordinate &p0, const geom::Coordinate &p1) |
| static bool | isOpposite (int quad1, int quad2) |
| static int | commonHalfPlane (int quad1, int quad2) |
| static bool | isInHalfPlane (int quad, int halfPlane) |
| static bool | isNorthern (int quad) |
Static Public Attributes | |
| static const int | NE = 0 |
| static const int | NW = 1 |
| static const int | SW = 2 |
| static const int | SE = 3 |
1 | 0 --+-- 2 | 3
|
||||||||||||
|
Returns whether the given quadrant lies within the given halfplane (specified by its right-hand quadrant). |
|
|
Returns true if the given quadrant is 0 or 1. |
|
||||||||||||
|
Returns true if the quadrants are 1 and 3, or 2 and 4 |
|
||||||||||||
|
Returns the quadrant of a directed line segment from p0 to p1.
|
|
||||||||||||
|
Returns the quadrant of a directed line segment (specified as x and y displacements, which cannot both be 0).
|
1.4.4