Angle and Trigonometry Functions
Header: <glm/trigonometric.hpp> (included by <glm/glm.hpp>)
Angles are assumed to be in radians.
radians(genType degrees) -> genType- Returns \(\frac{\pi}{180}\cdot\mathrm{degrees}\)
degrees(genType radians) -> genType- Returns \(\frac{180}{\pi}\cdot\mathrm{radians}\)
sin(genType angle) -> genTypecos(genType angle) -> genTypetan(genType angle) -> genTypeasin(genType x) -> genType- The range of values returned by this function is \([-\pi/2,\pi/2]\).
acos(genType x) -> genType- The range of values returned by this function is \([0,\pi]\).
atan(genType y, genType x) -> genType- The range of values returned by this function is \([-\pi,\pi]\).
atan(genType y_over_x) -> genType- The range of values returned by this function is \([-\pi/2,\pi/2]\).
sinh(genType x) -> genTypecosh(genType x) -> genTypetanh(genType x) -> genTypeasinh(genType x) -> genTypeacosh(genType x) -> genTypeatanh(genType x) -> genType