I want to use the tangens function of the glm library. However, I am not sure if the parameter is supposed to be passed in radians or degrees.
https
://glm.g-truc.net/0.9.4/api/a00136.html
I want to use the tangens function of the glm library. However, I am not sure if the parameter is supposed to be passed in radians or degrees.
https
://glm.g-truc.net/0.9.4/api/a00136.html
In this case, it’s radians. All GLM functions which mirror GLSL functions use radians for angles.
For GLM functions which mirror legacy OpenGL API functions which accept angles in degrees (i.e. glRotate
or gluPerspective
), the situation is more complex. GLM 0.9.4 and earlier use degrees, GLM 0.9.5 uses radians if GLM_FORCE_RADIANS
is defined and degrees otherwise, GLM 0.9.6 uses radians.
Thank you (again) for your detailed answer
This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.