#include <Octant.h>
Static Public Member Functions | |
int | octant (double dx, double dy) |
int | octant (const geom::Coordinate &p0, const geom::Coordinate &p1) |
int | octant (const geom::Coordinate *p0, const geom::Coordinate *p1) |
Octants are numbered as follows:
2|1 3 | 0 ---+-- 4 | 7 5|6
If line segments lie along a coordinate axis, the octant is the lower of the two possible values.
Last port: noding/Octant.java rev. 1.2 (JTS-1.7)
|
Returns the octant of a directed line segment from p0 to p1. |
|
Returns the octant of a directed line segment (specified as x and y displacements, which cannot both be 0). |