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) -> genType
cos(genType angle) -> genType
tan(genType angle) -> genType
asin(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) -> genType
cosh(genType x) -> genType
tanh(genType x) -> genType
asinh(genType x) -> genType
acosh(genType x) -> genType
atanh(genType x) -> genType