19 #ifndef GEOS_ALGORITHM_ANGLE_H 20 #define GEOS_ALGORITHM_ANGLE_H 22 #include <geos/export.h> 23 #include <geos/algorithm/CGAlgorithms.h> 43 static const double PI_TIMES_2;
44 static const double PI_OVER_2;
45 static const double PI_OVER_4;
48 static const int COUNTERCLOCKWISE = CGAlgorithms::COUNTERCLOCKWISE;
51 static const int CLOCKWISE = CGAlgorithms::CLOCKWISE;
54 static const int NONE = CGAlgorithms::COLLINEAR;
61 static double toDegrees(
double radians);
68 static double toRadians(
double angleDegrees);
178 static int getTurn(
double ang1,
double ang2);
187 static double normalize(
double angle);
207 static double normalizePositive(
double angle);
220 static double diff(
double ang1,
double ang2);
228 #endif // GEOS_ALGORITHM_ANGLE_H Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:60
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:25
Utility functions for working with angles.
Definition: Angle.h:39