public class Octant extends Object
\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.
| Modifier and Type | Method and Description |
|---|---|
static int |
octant(double dx,
double dy)
Returns the octant of a directed line segment (specified as x and y
displacements, which cannot both be 0).
|
static int |
octant(Point p0,
Point p1)
Returns the octant of a directed line segment from p0 to p1.
|
Copyright © 2015 Revolution Systems Inc.. All rights reserved.