21#include <geos/export.h>
22#include <geos/algorithm/Orientation.h>
41 static constexpr double PI_TIMES_2 = 2.0 * MATH_PI;
42 static constexpr double PI_OVER_2 = MATH_PI / 2.0;
43 static constexpr double PI_OVER_4 = MATH_PI / 4.0;
46 static const int COUNTERCLOCKWISE = Orientation::COUNTERCLOCKWISE;
49 static const int CLOCKWISE = Orientation::CLOCKWISE;
52 static const int NONE = Orientation::COLLINEAR;
218 static double diff(
double ang1,
double ang2);
Utility functions for working with angles.
Definition: Angle.h:38
static double diff(double ang1, double ang2)
static double angle(const geom::Coordinate &p0, const geom::Coordinate &p1)
Returns the angle of the vector from p0 to p1, relative to the positive X-axis.
static double angleBetween(const geom::Coordinate &tip1, const geom::Coordinate &tail, const geom::Coordinate &tip2)
static bool isObtuse(const geom::Coordinate &p0, const geom::Coordinate &p1, const geom::Coordinate &p2)
static int getTurn(double ang1, double ang2)
Returns whether an angle must turn clockwise or counterclockwise to overlap another angle.
static double interiorAngle(const geom::Coordinate &p0, const geom::Coordinate &p1, const geom::Coordinate &p2)
static bool isAcute(const geom::Coordinate &p0, const geom::Coordinate &p1, const geom::Coordinate &p2)
static double toDegrees(double radians)
static double normalizePositive(double angle)
Computes the normalized positive value of an angle, which is the equivalent angle in the range [ 0,...
static double normalize(double angle)
Computes the normalized value of an angle, which is the equivalent angle in the range ( -Pi,...
static double toRadians(double angleDegrees)
static double angle(const geom::Coordinate &p)
Returns the angle that the vector from (0,0) to p, relative to the positive X-axis.
static double angleBetweenOriented(const geom::Coordinate &tip1, const geom::Coordinate &tail, const geom::Coordinate &tip2)
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:58
Basic namespace for all GEOS functionalities.
Definition: geos.h:39