Resolved issue #4, added GLM_GTX_rotate_normalized_axis

This commit is contained in:
Christophe Riccio
2012-12-14 00:14:02 +01:00
parent 8a291a9dc2
commit 739ab3529c
9 changed files with 292 additions and 70 deletions

View File

@@ -87,7 +87,7 @@ namespace glm
///
/// @param m Input matrix multiplied by this rotation matrix.
/// @param angle Rotation angle expressed in radians if GLM_FORCE_RADIANS is define or degrees otherwise.
/// @param axis Rotation axis, recommanded to be normalized.
/// @param axis Rotation axis.
/// @tparam T Value type used to build the matrix. Currently supported: half (not recommanded), float or double.
/// @see gtc_matrix_transform
/// @see gtx_transform

View File

@@ -51,7 +51,7 @@ namespace glm
#ifdef GLM_FORCE_RADIANS
T a = angle;
#else
T a = radians(angle);
T a = radians(angle);
#endif
T c = cos(a);
T s = sin(a);

View File

@@ -192,11 +192,11 @@ namespace detail
detail::tquat<T> inverse(
detail::tquat<T> const & q);
/// Rotates a quaternion from an vector of 3 components axis and an angle.
/// Rotates a quaternion from a vector of 3 components axis and an angle.
///
/// @param q Source orientation
/// @param angle Angle expressed in radians if GLM_FORCE_RADIANS is define or degrees otherwise.
/// @param axis Axis of the rotation, must be normalized.
/// @param axis Axis of the rotation
///
/// @see gtc_quaternion
template <typename T>