FlukyEngine
Classes | Typedefs | Functions
GLM_GTX_dual_quaternion

Include <glm/gtx/dual_quaternion.hpp> to use the features of this extension. More...

Collaboration diagram for GLM_GTX_dual_quaternion:

Classes

struct  glm::tdualquat< T, Q >
 

Typedefs

typedef tdualquat< float, lowpglm::lowp_dualquat
 Dual-quaternion of low single-qualifier floating-point numbers. More...
 
typedef tdualquat< float, mediumpglm::mediump_dualquat
 Dual-quaternion of medium single-qualifier floating-point numbers. More...
 
typedef tdualquat< float, highpglm::highp_dualquat
 Dual-quaternion of high single-qualifier floating-point numbers. More...
 
typedef tdualquat< float, lowpglm::lowp_fdualquat
 Dual-quaternion of low single-qualifier floating-point numbers. More...
 
typedef tdualquat< float, mediumpglm::mediump_fdualquat
 Dual-quaternion of medium single-qualifier floating-point numbers. More...
 
typedef tdualquat< float, highpglm::highp_fdualquat
 Dual-quaternion of high single-qualifier floating-point numbers. More...
 
typedef tdualquat< double, lowpglm::lowp_ddualquat
 Dual-quaternion of low double-qualifier floating-point numbers. More...
 
typedef tdualquat< double, mediumpglm::mediump_ddualquat
 Dual-quaternion of medium double-qualifier floating-point numbers. More...
 
typedef tdualquat< double, highpglm::highp_ddualquat
 Dual-quaternion of high double-qualifier floating-point numbers. More...
 
typedef highp_fdualquat glm::dualquat
 Dual-quaternion of floating-point numbers. More...
 
typedef highp_fdualquat glm::fdualquat
 Dual-quaternion of single-qualifier floating-point numbers. More...
 
typedef highp_ddualquat glm::ddualquat
 Dual-quaternion of default double-qualifier floating-point numbers. More...
 

Functions

template<typename T , qualifier Q>
GLM_FUNC_DECL tdualquat< T, Q > glm::operator+ (tdualquat< T, Q > const &q)
 
template<typename T , qualifier Q>
GLM_FUNC_DECL tdualquat< T, Q > glm::operator- (tdualquat< T, Q > const &q)
 
template<typename T , qualifier Q>
GLM_FUNC_DECL tdualquat< T, Q > glm::operator+ (tdualquat< T, Q > const &q, tdualquat< T, Q > const &p)
 
template<typename T , qualifier Q>
GLM_FUNC_DECL tdualquat< T, Q > glm::operator* (tdualquat< T, Q > const &q, tdualquat< T, Q > const &p)
 
template<typename T , qualifier Q>
GLM_FUNC_DECL vec< 3, T, Q > glm::operator* (tdualquat< T, Q > const &q, vec< 3, T, Q > const &v)
 
template<typename T , qualifier Q>
GLM_FUNC_DECL vec< 3, T, Q > glm::operator* (vec< 3, T, Q > const &v, tdualquat< T, Q > const &q)
 
template<typename T , qualifier Q>
GLM_FUNC_DECL vec< 4, T, Q > glm::operator* (tdualquat< T, Q > const &q, vec< 4, T, Q > const &v)
 
template<typename T , qualifier Q>
GLM_FUNC_DECL vec< 4, T, Q > glm::operator* (vec< 4, T, Q > const &v, tdualquat< T, Q > const &q)
 
template<typename T , qualifier Q>
GLM_FUNC_DECL tdualquat< T, Q > glm::operator* (tdualquat< T, Q > const &q, T const &s)
 
template<typename T , qualifier Q>
GLM_FUNC_DECL tdualquat< T, Q > glm::operator* (T const &s, tdualquat< T, Q > const &q)
 
template<typename T , qualifier Q>
GLM_FUNC_DECL tdualquat< T, Q > glm::operator/ (tdualquat< T, Q > const &q, T const &s)
 
template<typename T , qualifier Q>
GLM_FUNC_DECL bool glm::operator== (tdualquat< T, Q > const &q1, tdualquat< T, Q > const &q2)
 
template<typename T , qualifier Q>
GLM_FUNC_DECL bool glm::operator!= (tdualquat< T, Q > const &q1, tdualquat< T, Q > const &q2)
 
template<typename T , qualifier Q>
GLM_FUNC_DECL tdualquat< T, Q > glm::dual_quat_identity ()
 Creates an identity dual quaternion. More...
 
template<typename T , qualifier Q>
GLM_FUNC_DECL tdualquat< T, Q > glm::normalize (tdualquat< T, Q > const &q)
 Returns the normalized quaternion. More...
 
template<typename T , qualifier Q>
GLM_FUNC_DECL tdualquat< T, Q > glm::lerp (tdualquat< T, Q > const &x, tdualquat< T, Q > const &y, T const &a)
 Returns the linear interpolation of two dual quaternion. More...
 
template<typename T , qualifier Q>
GLM_FUNC_DECL tdualquat< T, Q > glm::inverse (tdualquat< T, Q > const &q)
 Returns the q inverse. More...
 
template<typename T , qualifier Q>
GLM_FUNC_DECL mat< 2, 4, T, Q > glm::mat2x4_cast (tdualquat< T, Q > const &x)
 Converts a quaternion to a 2 * 4 matrix. More...
 
template<typename T , qualifier Q>
GLM_FUNC_DECL mat< 3, 4, T, Q > glm::mat3x4_cast (tdualquat< T, Q > const &x)
 Converts a quaternion to a 3 * 4 matrix. More...
 
template<typename T , qualifier Q>
GLM_FUNC_DECL tdualquat< T, Q > glm::dualquat_cast (mat< 2, 4, T, Q > const &x)
 Converts a 2 * 4 matrix (matrix which holds real and dual parts) to a quaternion. More...
 
template<typename T , qualifier Q>
GLM_FUNC_DECL tdualquat< T, Q > glm::dualquat_cast (mat< 3, 4, T, Q > const &x)
 Converts a 3 * 4 matrix (augmented matrix rotation + translation) to a quaternion. More...
 

Detailed Description

Include <glm/gtx/dual_quaternion.hpp> to use the features of this extension.

Defines a templated dual-quaternion type and several dual-quaternion operations.

Typedef Documentation

◆ ddualquat

Dual-quaternion of default double-qualifier floating-point numbers.

See also
GLM_GTX_dual_quaternion

◆ dualquat

Dual-quaternion of floating-point numbers.

See also
GLM_GTX_dual_quaternion

◆ fdualquat

Dual-quaternion of single-qualifier floating-point numbers.

See also
GLM_GTX_dual_quaternion

◆ highp_ddualquat

Dual-quaternion of high double-qualifier floating-point numbers.

See also
GLM_GTX_dual_quaternion

◆ highp_dualquat

Dual-quaternion of high single-qualifier floating-point numbers.

See also
GLM_GTX_dual_quaternion

◆ highp_fdualquat

Dual-quaternion of high single-qualifier floating-point numbers.

See also
GLM_GTX_dual_quaternion

◆ lowp_ddualquat

Dual-quaternion of low double-qualifier floating-point numbers.

See also
GLM_GTX_dual_quaternion

◆ lowp_dualquat

Dual-quaternion of low single-qualifier floating-point numbers.

See also
GLM_GTX_dual_quaternion

◆ lowp_fdualquat

Dual-quaternion of low single-qualifier floating-point numbers.

See also
GLM_GTX_dual_quaternion

◆ mediump_ddualquat

Dual-quaternion of medium double-qualifier floating-point numbers.

See also
GLM_GTX_dual_quaternion

◆ mediump_dualquat

Dual-quaternion of medium single-qualifier floating-point numbers.

See also
GLM_GTX_dual_quaternion

◆ mediump_fdualquat

Dual-quaternion of medium single-qualifier floating-point numbers.

See also
GLM_GTX_dual_quaternion

Function Documentation

◆ dual_quat_identity()

template<typename T , qualifier Q>
GLM_FUNC_DECL tdualquat<T, Q> glm::dual_quat_identity ( )

Creates an identity dual quaternion.

See also
GLM_GTX_dual_quaternion

◆ dualquat_cast() [1/2]

template<typename T , qualifier Q>
GLM_FUNC_DECL tdualquat<T, Q> glm::dualquat_cast ( mat< 2, 4, T, Q > const &  x)

Converts a 2 * 4 matrix (matrix which holds real and dual parts) to a quaternion.

See also
GLM_GTX_dual_quaternion

◆ dualquat_cast() [2/2]

template<typename T , qualifier Q>
GLM_FUNC_DECL tdualquat<T, Q> glm::dualquat_cast ( mat< 3, 4, T, Q > const &  x)

Converts a 3 * 4 matrix (augmented matrix rotation + translation) to a quaternion.

See also
GLM_GTX_dual_quaternion

◆ inverse()

template<typename T , qualifier Q>
GLM_FUNC_DECL tdualquat<T, Q> glm::inverse ( tdualquat< T, Q > const &  q)

Returns the q inverse.

See also
GLM_GTX_dual_quaternion

◆ lerp()

template<typename T , qualifier Q>
GLM_FUNC_DECL tdualquat<T, Q> glm::lerp ( tdualquat< T, Q > const &  x,
tdualquat< T, Q > const &  y,
T const &  a 
)

Returns the linear interpolation of two dual quaternion.

See also
gtc_dual_quaternion

◆ mat2x4_cast()

template<typename T , qualifier Q>
GLM_FUNC_DECL mat<2, 4, T, Q> glm::mat2x4_cast ( tdualquat< T, Q > const &  x)

Converts a quaternion to a 2 * 4 matrix.

See also
GLM_GTX_dual_quaternion

◆ mat3x4_cast()

template<typename T , qualifier Q>
GLM_FUNC_DECL mat<3, 4, T, Q> glm::mat3x4_cast ( tdualquat< T, Q > const &  x)

Converts a quaternion to a 3 * 4 matrix.

See also
GLM_GTX_dual_quaternion

◆ normalize()

template<typename T , qualifier Q>
GLM_FUNC_DECL tdualquat<T, Q> glm::normalize ( tdualquat< T, Q > const &  q)

Returns the normalized quaternion.

See also
GLM_GTX_dual_quaternion