/*
5 * Authors: see git history
7 * Copyright (C) 2018 Authors
8 * Released under GNU GPL v2+, read the file
'COPYING' for more information.
21 double m = fmod(x, 360.0);
27 if (m < 0.0 || m >= 360.0) {
40 return m < 180.0 ? m : m - 360.0;
Various trigoniometric helper functions.
static Angle from_degrees(Coord d)
Create an angle from its measure in degrees.
static Angle from_radians(Coord d)
Create an angle from its measure in radians.
Coord degrees() const
Get the angle as degrees in math convention.
Coord radians() const
Get the angle as radians.
double mod360symm(double const x)
Returns x wrapped around to between -180 and less than 180, or 0 if x isn't finite.
double degree_to_radians_mod2pi(double degrees)
double radians_to_degree_mod360(double rad)
double mod360(double const x)
Returns x wrapped around to between 0 and less than 360, or 0 if x isn't finite.
TODO: insert short description here.