Function angles::two_pi_complement

Function Documentation

static inline double angles::two_pi_complement(double angle)

returns the angle in [-2*M_PI, 2*M_PI] going the other way along the unit circle.

\function

Parameters

angle – The angle to which you want to turn in the range [-2*M_PI, 2*M_PI] E.g. two_pi_complement(-M_PI/4) returns 7_M_PI/4 two_pi_complement(M_PI/4) returns -7*M_PI/4