ofDocsdocumentation glm gtxrotate_vector (functions)

gtxrotate_vector (functions)


glm::orientation( ... )

glm::mat4 glm::orientation(const glm::vec3 &Normal=P, const glm::vec3 &Up=P)

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)

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)

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)

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)

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)

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)

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)

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)

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)

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)

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