|
|
@@ -150,21 +150,21 @@ namespace detail
|
|
|
/// @addtogroup gtc_quaternion
|
|
|
/// @{
|
|
|
|
|
|
- //! Returns the length of the quaternion.
|
|
|
+ /// Returns the length of the quaternion.
|
|
|
///
|
|
|
/// @see - gtc_quaternion
|
|
|
template <typename T>
|
|
|
T length(
|
|
|
detail::tquat<T> const & q);
|
|
|
|
|
|
- //! Returns the normalized quaternion.
|
|
|
+ /// Returns the normalized quaternion.
|
|
|
///
|
|
|
/// @see - gtc_quaternion
|
|
|
template <typename T>
|
|
|
detail::tquat<T> normalize(
|
|
|
detail::tquat<T> const & q);
|
|
|
|
|
|
- //! Returns dot product of q1 and q2, i.e., q1[0] * q2[0] + q1[1] * q2[1] + ...
|
|
|
+ /// Returns dot product of q1 and q2, i.e., q1[0] * q2[0] + q1[1] * q2[1] + ...
|
|
|
///
|
|
|
/// @see - gtc_quaternion
|
|
|
template <typename T>
|
|
|
@@ -172,7 +172,7 @@ namespace detail
|
|
|
detail::tquat<T> const & q1,
|
|
|
detail::tquat<T> const & q2);
|
|
|
|
|
|
- //! Returns a SLERP interpolated quaternion of x and y according a.
|
|
|
+ /// Returns a SLERP interpolated quaternion of x and y according a.
|
|
|
///
|
|
|
/// @see - gtc_quaternion
|
|
|
template <typename T>
|
|
|
@@ -181,21 +181,21 @@ namespace detail
|
|
|
detail::tquat<T> const & y,
|
|
|
T const & a);
|
|
|
|
|
|
- //! Returns the q conjugate.
|
|
|
+ /// Returns the q conjugate.
|
|
|
///
|
|
|
/// @see - gtc_quaternion
|
|
|
template <typename T>
|
|
|
detail::tquat<T> conjugate(
|
|
|
detail::tquat<T> const & q);
|
|
|
|
|
|
- //! Returns the q inverse.
|
|
|
+ /// Returns the q inverse.
|
|
|
///
|
|
|
/// @see - gtc_quaternion
|
|
|
template <typename T>
|
|
|
detail::tquat<T> inverse(
|
|
|
detail::tquat<T> const & q);
|
|
|
|
|
|
- //! Rotates a quaternion from an vector of 3 components axis and an angle expressed in degrees.
|
|
|
+ /// Rotates a quaternion from an vector of 3 components axis and an angle expressed in degrees.
|
|
|
///
|
|
|
/// @see - gtc_quaternion
|
|
|
template <typename T>
|
|
|
@@ -204,65 +204,65 @@ namespace detail
|
|
|
typename detail::tquat<T>::value_type const & angle,
|
|
|
detail::tvec3<T> const & v);
|
|
|
|
|
|
- //! Converts a quaternion to a 3 * 3 matrix.
|
|
|
+ /// Converts a quaternion to a 3 * 3 matrix.
|
|
|
///
|
|
|
/// @see - gtc_quaternion
|
|
|
template <typename T>
|
|
|
detail::tmat3x3<T> mat3_cast(
|
|
|
detail::tquat<T> const & x);
|
|
|
|
|
|
- //! Converts a quaternion to a 4 * 4 matrix.
|
|
|
+ /// Converts a quaternion to a 4 * 4 matrix.
|
|
|
///
|
|
|
/// @see - gtc_quaternion
|
|
|
template <typename T>
|
|
|
detail::tmat4x4<T> mat4_cast(
|
|
|
detail::tquat<T> const & x);
|
|
|
|
|
|
- //! Converts a 3 * 3 matrix to a quaternion.
|
|
|
+ /// Converts a 3 * 3 matrix to a quaternion.
|
|
|
///
|
|
|
/// @see - gtc_quaternion
|
|
|
template <typename T>
|
|
|
detail::tquat<T> quat_cast(
|
|
|
detail::tmat3x3<T> const & x);
|
|
|
|
|
|
- //! Converts a 4 * 4 matrix to a quaternion.
|
|
|
+ /// Converts a 4 * 4 matrix to a quaternion.
|
|
|
///
|
|
|
/// @see - gtc_quaternion
|
|
|
template <typename T>
|
|
|
detail::tquat<T> quat_cast(
|
|
|
detail::tmat4x4<T> const & x);
|
|
|
|
|
|
- //! Quaternion of floating-point numbers.
|
|
|
+ /// Quaternion of floating-point numbers.
|
|
|
///
|
|
|
/// @see - gtc_quaternion
|
|
|
typedef detail::tquat<float> quat;
|
|
|
|
|
|
- //! Quaternion of half-precision floating-point numbers.
|
|
|
+ /// Quaternion of half-precision floating-point numbers.
|
|
|
///
|
|
|
/// @see - gtc_quaternion
|
|
|
typedef detail::tquat<detail::thalf> hquat;
|
|
|
|
|
|
- //! Quaternion of single-precision floating-point numbers.
|
|
|
+ /// Quaternion of single-precision floating-point numbers.
|
|
|
///
|
|
|
/// @see - gtc_quaternion
|
|
|
typedef detail::tquat<float> fquat;
|
|
|
|
|
|
- //! Quaternion of double-precision floating-point numbers.
|
|
|
+ /// Quaternion of double-precision floating-point numbers.
|
|
|
///
|
|
|
/// @see - gtc_quaternion
|
|
|
typedef detail::tquat<double> dquat;
|
|
|
|
|
|
- //! Quaternion of low precision floating-point numbers.
|
|
|
+ /// Quaternion of low precision floating-point numbers.
|
|
|
///
|
|
|
/// @see - gtc_quaternion
|
|
|
typedef detail::tquat<lowp_float> lowp_quat;
|
|
|
|
|
|
- //! Quaternion of medium precision floating-point numbers.
|
|
|
+ /// Quaternion of medium precision floating-point numbers.
|
|
|
///
|
|
|
/// @see - gtc_quaternion
|
|
|
typedef detail::tquat<mediump_float> mediump_quat;
|
|
|
|
|
|
- //! Quaternion of high precision floating-point numbers.
|
|
|
+ /// Quaternion of high precision floating-point numbers.
|
|
|
///
|
|
|
/// @see - gtc_quaternion
|
|
|
typedef detail::tquat<highp_float> highp_quat;
|