Functions
GLM_GTX_matrix_transform_2d

Defines functions that generate common 2d transformation matrices. More...

Collaboration diagram for GLM_GTX_matrix_transform_2d:

Functions

template<typename T , precision P>
GLM_FUNC_QUALIFIER detail::tmat3x3< T, Pglm::rotate (detail::tmat3x3< T, P > const &m, T const &angle)
 
template<typename T , precision P>
GLM_FUNC_QUALIFIER detail::tmat3x3< T, Pglm::scale (detail::tmat3x3< T, P > const &m, detail::tvec2< T, P > const &v)
 
template<typename T , precision P>
GLM_FUNC_QUALIFIER detail::tmat3x3< T, Pglm::shearX (detail::tmat3x3< T, P > const &m, T const &y)
 
template<typename T , precision P>
GLM_FUNC_QUALIFIER detail::tmat3x3< T, Pglm::shearY (detail::tmat3x3< T, P > const &m, T const &x)
 
template<typename T , precision P>
GLM_FUNC_QUALIFIER detail::tmat3x3< T, Pglm::translate (detail::tmat3x3< T, P > const &m, detail::tvec2< T, P > const &v)
 

Detailed Description

Defines functions that generate common 2d transformation matrices.

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

Function Documentation

◆ rotate()

template<typename T , precision P>
GLM_FUNC_QUALIFIER detail::tmat3x3<T, P> glm::rotate ( detail::tmat3x3< T, P > const &  m,
T const &  angle 
)

Builds a rotation 3 * 3 matrix created from an angle.

Parameters
mInput matrix multiplied by this translation matrix.
angleRotation angle expressed in radians if GLM_FORCE_RADIANS is defined or degrees otherwise.

◆ scale()

template<typename T , precision P>
GLM_FUNC_QUALIFIER detail::tmat3x3<T, P> glm::scale ( detail::tmat3x3< T, P > const &  m,
detail::tvec2< T, P > const &  v 
)

Builds a scale 3 * 3 matrix created from a vector of 2 components.

Parameters
mInput matrix multiplied by this translation matrix.
vCoordinates of a scale vector.

◆ shearX()

template<typename T , precision P>
GLM_FUNC_QUALIFIER detail::tmat3x3<T, P> glm::shearX ( detail::tmat3x3< T, P > const &  m,
T const &  y 
)

Builds an horizontal (parallel to the x axis) shear 3 * 3 matrix.

Parameters
mInput matrix multiplied by this translation matrix.
yShear factor.

◆ shearY()

template<typename T , precision P>
GLM_FUNC_QUALIFIER detail::tmat3x3<T, P> glm::shearY ( detail::tmat3x3< T, P > const &  m,
T const &  x 
)

Builds a vertical (parallel to the y axis) shear 3 * 3 matrix.

Parameters
mInput matrix multiplied by this translation matrix.
xShear factor.

◆ translate()

template<typename T , precision P>
GLM_FUNC_QUALIFIER detail::tmat3x3<T, P> glm::translate ( detail::tmat3x3< T, P > const &  m,
detail::tvec2< T, P > const &  v 
)

Builds a translation 3 * 3 matrix created from a vector of 2 components.

Parameters
mInput matrix multiplied by this translation matrix.
vCoordinates of a translation vector.


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