ofDocsdocumentation glm gtxrotate_normalized_axis (functions)

gtxrotate_normalized_axis (functions)


glm::rotateNormalizedAxis( ... )

glm::mat4 glm::rotateNormalizedAxis(const glm::mat4 &m=P, const T &angle, const glm::vec3 &axis=P)

glm::rotateNormalizedAxis( ... )

glm::quat glm::rotateNormalizedAxis(const glm::quat &q=P, const T &angle, const glm::vec3 &axis=P)

Rotates a quaternion from a vector of 3 components normalized axis and an angle.

Parameters:

q Source orientation

angle Angle expressed in radians if GLM_FORCE_RADIANS is define or degrees otherwise.

axis Normalized axis of the rotation, must be normalized.

See also: gtx_rotate_normalized_axis