21 #ifndef GEOS_GEOMGRAPH_QUADRANT_H
22 #define GEOS_GEOMGRAPH_QUADRANT_H
24 #include <geos/export.h>
27 #include <geos/inline.h>
48 class GEOS_DLL Quadrant {
52 static const int NE = 0;
53 static const int NW = 1;
54 static const int SW = 2;
55 static const int SE = 3;
63 static int quadrant(
double dx,
double dy);
70 static int quadrant(
const geom::Coordinate& p0,
71 const geom::Coordinate& p1);
76 static bool isOpposite(
int quad1,
int quad2);
84 static int commonHalfPlane(
int quad1,
int quad2);
90 static bool isInHalfPlane(
int quad,
int halfPlane);
95 static bool isNorthern(
int quad);
102 #endif // ifndef GEOS_GEOMGRAPH_QUADRANT_H