global functions
glm::orientation(...)
glm::mat4 glm::orientation(const glm::vec3 &Normal=P, const glm::vec3 &Up=P)
Documentation from code comments
Build a rotation matrix from a normal and a up vector. From GLM_GTX_rotate_vector extension.
glm::rotate(...)
glm::vec2 glm::rotate(const glm::vec2 &v=P, const T &angle)
Documentation from code comments
Rotate a two dimensional vector. From GLM_GTX_rotate_vector extension.
glm::rotate(...)
glm::vec3 glm::rotate(const glm::vec3 &v=P, const T &angle, const glm::vec3 &normal=P)
Documentation from code comments
Rotate a three dimensional vector around an axis. From GLM_GTX_rotate_vector extension.
glm::rotate(...)
glm::vec4 glm::rotate(const glm::vec4 &v=P, const T &angle, const glm::vec3 &normal=P)
Documentation from code comments
Rotate a four dimensional vector around an axis. From GLM_GTX_rotate_vector extension.
glm::rotateX(...)
glm::vec3 glm::rotateX(const glm::vec3 &v=P, const T &angle)
Documentation from code comments
Rotate a three dimensional vector around the X axis. From GLM_GTX_rotate_vector extension.
glm::rotateX(...)
glm::vec4 glm::rotateX(const glm::vec4 &v=P, const T &angle)
Documentation from code comments
Rotate a four dimentionnals vector around the X axis. From GLM_GTX_rotate_vector extension.
glm::rotateY(...)
glm::vec3 glm::rotateY(const glm::vec3 &v=P, const T &angle)
Documentation from code comments
Rotate a three dimensional vector around the Y axis. From GLM_GTX_rotate_vector extension.
glm::rotateY(...)
glm::vec4 glm::rotateY(const glm::vec4 &v=P, const T &angle)
Documentation from code comments
Rotate a four dimensional vector around the X axis. From GLM_GTX_rotate_vector extension.
glm::rotateZ(...)
glm::vec3 glm::rotateZ(const glm::vec3 &v=P, const T &angle)
Documentation from code comments
Rotate a three dimensional vector around the Z axis. From GLM_GTX_rotate_vector extension.
glm::rotateZ(...)
glm::vec4 glm::rotateZ(const glm::vec4 &v=P, const T &angle)
Documentation from code comments
Rotate a four dimensional vector around the X axis. From GLM_GTX_rotate_vector extension.
glm::slerp(...)
glm::vec3 glm::slerp(const glm::vec3 &x=P, const glm::vec3 &y=P, const T &a)
Documentation from code comments
Returns Spherical interpolation between two vectors
Parameters:
x A first vector
y A second vector
a Interpolation factor. The interpolation is defined beyond the range [0, 1].
See also: gtx_rotate_vector
Last updated 星期二, 19 十一月 2024 17:26:12 UTC - 2537ee49f6d46d5fe98e408849448314fd1f180e
If you have any doubt about the usage of this module you can ask in the forum.
If you want to contribute better documentation or start documenting this section you can do so here
If you find anything wrong with this docs you can report any error by opening an issue