GEOS  3.9.1dev
Static Public Member Functions | Private Member Functions | List of all members
geos::noding::Octant Class Reference

Methods for computing and working with octants of the Cartesian plane. More...

#include <Octant.h>

Static Public Member Functions

static int octant (double dx, double dy)
 
static int octant (const geom::Coordinate &p0, const geom::Coordinate &p1)
 
static int octant (const geom::Coordinate *p0, const geom::Coordinate *p1)
 

Private Member Functions

 Octant ()
 

Detailed Description

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.

Last port: noding/Octant.java rev. 1.2 (JTS-1.7)

Definition at line 49 of file Octant.h.

Constructor & Destructor Documentation

geos::noding::Octant::Octant ( )
inlineprivate

Definition at line 51 of file Octant.h.

Member Function Documentation

static int geos::noding::Octant::octant ( double  dx,
double  dy 
)
static

Returns the octant of a directed line segment (specified as x and y displacements, which cannot both be 0).

static int geos::noding::Octant::octant ( const geom::Coordinate p0,
const geom::Coordinate p1 
)
static

Returns the octant of a directed line segment from p0 to p1.

static int geos::noding::Octant::octant ( const geom::Coordinate p0,
const geom::Coordinate p1 
)
inlinestatic

Definition at line 66 of file Octant.h.

References geos::ignore_unused_variable_warning().

Here is the call graph for this function:


The documentation for this class was generated from the following file: