20 #ifndef GEOS_ALGORITHM_ANGLE_H
21 #define GEOS_ALGORITHM_ANGLE_H
23 #include <geos/export.h>
24 #include <geos/algorithm/CGAlgorithms.h>
44 static const double PI_TIMES_2;
45 static const double PI_OVER_2;
46 static const double PI_OVER_4;
49 static const int COUNTERCLOCKWISE = CGAlgorithms::COUNTERCLOCKWISE;
52 static const int CLOCKWISE = CGAlgorithms::CLOCKWISE;
55 static const int NONE = CGAlgorithms::COLLINEAR;
62 static double toDegrees(
double radians);
69 static double toRadians(
double angleDegrees);
179 static int getTurn(
double ang1,
double ang2);
188 static double normalize(
double angle);
208 static double normalizePositive(
double angle);
221 static double diff(
double ang1,
double ang2);
229 #endif // GEOS_ALGORITHM_ANGLE_H
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:61
Utility functions for working with angles.
Definition: Angle.h:40