Functions

Extented quaternion types and functions. More...

Collaboration diagram for GLM_GTX_quaternion:

Functions

template<typename T , precision P>
GLM_FUNC_DECL detail::tvec3< T, Pglm::cross (detail::tquat< T, P > const &q, detail::tvec3< T, P > const &v)
 
template<typename T , precision P>
GLM_FUNC_DECL detail::tvec3< T, Pglm::cross (detail::tvec3< T, P > const &v, detail::tquat< T, P > const &q)
 
template<typename T , precision P>
GLM_FUNC_DECL detail::tquat< T, Pglm::exp (detail::tquat< T, P > const &q)
 
template<typename T , precision P>
GLM_FUNC_DECL T glm::extractRealComponent (detail::tquat< T, P > const &q)
 
template<typename T , precision P>
GLM_FUNC_DECL detail::tquat< T, Pglm::fastMix (detail::tquat< T, P > const &x, detail::tquat< T, P > const &y, T const &a)
 
template<typename T , precision P>
GLM_FUNC_DECL detail::tquat< T, Pglm::intermediate (detail::tquat< T, P > const &prev, detail::tquat< T, P > const &curr, detail::tquat< T, P > const &next)
 
template<typename T , precision P>
GLM_FUNC_DECL T glm::length2 (detail::tquat< T, P > const &q)
 
template<typename T , precision P>
GLM_FUNC_DECL detail::tquat< T, Pglm::log (detail::tquat< T, P > const &q)
 
template<typename T , precision P>
GLM_FUNC_DECL detail::tquat< T, Pglm::pow (detail::tquat< T, P > const &x, T const &y)
 
template<typename T , precision P>
GLM_FUNC_DECL detail::tvec3< T, Pglm::rotate (detail::tquat< T, P > const &q, detail::tvec3< T, P > const &v)
 
template<typename T , precision P>
GLM_FUNC_DECL detail::tvec4< T, Pglm::rotate (detail::tquat< T, P > const &q, detail::tvec4< T, P > const &v)
 
template<typename T , precision P>
GLM_FUNC_DECL detail::tquat< T, Pglm::rotation (detail::tvec3< T, P > const &orig, detail::tvec3< T, P > const &dest)
 
template<typename T , precision P>
GLM_FUNC_DECL detail::tquat< T, Pglm::shortMix (detail::tquat< T, P > const &x, detail::tquat< T, P > const &y, T const &a)
 
template<typename T , precision P>
GLM_FUNC_DECL detail::tquat< T, Pglm::squad (detail::tquat< T, P > const &q1, detail::tquat< T, P > const &q2, detail::tquat< T, P > const &s1, detail::tquat< T, P > const &s2, T const &h)
 
template<typename T , precision P>
GLM_FUNC_DECL detail::tmat3x3< T, Pglm::toMat3 (detail::tquat< T, P > const &x)
 
template<typename T , precision P>
GLM_FUNC_DECL detail::tmat4x4< T, Pglm::toMat4 (detail::tquat< T, P > const &x)
 
template<typename T , precision P>
GLM_FUNC_DECL detail::tquat< T, Pglm::toQuat (detail::tmat3x3< T, P > const &x)
 
template<typename T , precision P>
GLM_FUNC_DECL detail::tquat< T, Pglm::toQuat (detail::tmat4x4< T, P > const &x)
 

Detailed Description

Extented quaternion types and functions.

<glm/gtx/quaternion.hpp> need to be included to use these functionalities.

Function Documentation

◆ cross() [1/2]

template<typename T , precision P>
GLM_FUNC_DECL detail::tvec3<T, P> glm::cross ( detail::tquat< T, P > const &  q,
detail::tvec3< T, P > const &  v 
)

Compute a cross product between a quaternion and a vector.

See also
GLM_GTX_quaternion

◆ cross() [2/2]

template<typename T , precision P>
GLM_FUNC_DECL detail::tvec3<T, P> glm::cross ( detail::tvec3< T, P > const &  v,
detail::tquat< T, P > const &  q 
)

Compute a cross product between a vector and a quaternion.

See also
GLM_GTX_quaternion

◆ exp()

template<typename T , precision P>
GLM_FUNC_DECL detail::tquat<T, P> glm::exp ( detail::tquat< T, P > const &  q)

Returns a exp of a quaternion.

See also
GLM_GTX_quaternion

◆ extractRealComponent()

template<typename T , precision P>
GLM_FUNC_DECL T glm::extractRealComponent ( detail::tquat< T, P > const &  q)

Extract the real component of a quaternion.

See also
GLM_GTX_quaternion

◆ fastMix()

template<typename T , precision P>
GLM_FUNC_DECL detail::tquat<T, P> glm::fastMix ( detail::tquat< T, P > const &  x,
detail::tquat< T, P > const &  y,
T const &  a 
)

Quaternion normalized linear interpolation.

See also
GLM_GTX_quaternion

◆ intermediate()

template<typename T , precision P>
GLM_FUNC_DECL detail::tquat<T, P> glm::intermediate ( detail::tquat< T, P > const &  prev,
detail::tquat< T, P > const &  curr,
detail::tquat< T, P > const &  next 
)

Returns an intermediate control point for squad interpolation.

See also
GLM_GTX_quaternion

◆ length2()

template<typename T , precision P>
GLM_FUNC_DECL T glm::length2 ( detail::tquat< T, P > const &  q)

Returns the squared length of x.

See also
GLM_GTX_quaternion

◆ log()

template<typename T , precision P>
GLM_FUNC_DECL detail::tquat<T, P> glm::log ( detail::tquat< T, P > const &  q)

Returns a log of a quaternion.

See also
GLM_GTX_quaternion

◆ pow()

template<typename T , precision P>
GLM_FUNC_DECL detail::tquat<T, P> glm::pow ( detail::tquat< T, P > const &  x,
T const &  y 
)

Returns x raised to the y power.

See also
GLM_GTX_quaternion

◆ rotate() [1/2]

template<typename T , precision P>
GLM_FUNC_DECL detail::tvec3<T, P> glm::rotate ( detail::tquat< T, P > const &  q,
detail::tvec3< T, P > const &  v 
)

Returns quarternion square root.

See also
GLM_GTX_quaternion Rotates a 3 components vector by a quaternion.
GLM_GTX_quaternion

◆ rotate() [2/2]

template<typename T , precision P>
GLM_FUNC_DECL detail::tvec4<T, P> glm::rotate ( detail::tquat< T, P > const &  q,
detail::tvec4< T, P > const &  v 
)

Rotates a 4 components vector by a quaternion.

See also
GLM_GTX_quaternion

◆ rotation()

template<typename T , precision P>
GLM_FUNC_DECL detail::tquat<T, P> glm::rotation ( detail::tvec3< T, P > const &  orig,
detail::tvec3< T, P > const &  dest 
)

Compute the rotation between two vectors. param orig vector, needs to be normalized param dest vector, needs to be normalized

See also
GLM_GTX_quaternion

◆ shortMix()

template<typename T , precision P>
GLM_FUNC_DECL detail::tquat<T, P> glm::shortMix ( detail::tquat< T, P > const &  x,
detail::tquat< T, P > const &  y,
T const &  a 
)

Quaternion interpolation using the rotation short path.

See also
GLM_GTX_quaternion

◆ squad()

template<typename T , precision P>
GLM_FUNC_DECL detail::tquat<T, P> glm::squad ( detail::tquat< T, P > const &  q1,
detail::tquat< T, P > const &  q2,
detail::tquat< T, P > const &  s1,
detail::tquat< T, P > const &  s2,
T const &  h 
)

Compute a point on a path according squad equation. q1 and q2 are control points; s1 and s2 are intermediate control points.

See also
GLM_GTX_quaternion

◆ toMat3()

template<typename T , precision P>
GLM_FUNC_DECL detail::tmat3x3<T, P> glm::toMat3 ( detail::tquat< T, P > const &  x)

Converts a quaternion to a 3 * 3 matrix.

See also
GLM_GTX_quaternion

Definition at line 149 of file gtx/quaternion.hpp.

◆ toMat4()

template<typename T , precision P>
GLM_FUNC_DECL detail::tmat4x4<T, P> glm::toMat4 ( detail::tquat< T, P > const &  x)

Converts a quaternion to a 4 * 4 matrix.

See also
GLM_GTX_quaternion

Definition at line 156 of file gtx/quaternion.hpp.

◆ toQuat() [1/2]

template<typename T , precision P>
GLM_FUNC_DECL detail::tquat<T, P> glm::toQuat ( detail::tmat3x3< T, P > const &  x)

Converts a 3 * 3 matrix to a quaternion.

See also
GLM_GTX_quaternion

Definition at line 163 of file gtx/quaternion.hpp.

◆ toQuat() [2/2]

template<typename T , precision P>
GLM_FUNC_DECL detail::tquat<T, P> glm::toQuat ( detail::tmat4x4< T, P > const &  x)

Converts a 4 * 4 matrix to a quaternion.

See also
GLM_GTX_quaternion

Definition at line 170 of file gtx/quaternion.hpp.



rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jul 25 2024 02:50:26