Octant class

Methods for computing and working with octants of the Cartesian plane 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.

@version 1.7

Constructors

Octant()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

octant(double dx, double dy) int
Returns the octant of a directed line segment (specified as x and y displacements, which cannot both be 0).
octantCoords(Coordinate p0, Coordinate p1) int
Returns the octant of a directed line segment from p0 to p1.