0.9.9 API documenation
Functions

Add extra transformation matrices. More...

Functions

template<typename T , qualifier P>
GLM_FUNC_DECL mat< 3, 3, T, P > proj2D (const mat< 3, 3, T, P > &m, const vec< 3, T, P > &normal)
 Build planar projection matrix along normal axis. More...
 
template<typename T , qualifier P>
GLM_FUNC_DECL mat< 4, 4, T, P > proj3D (const mat< 4, 4, T, P > &m, const vec< 3, T, P > &normal)
 Build planar projection matrix along normal axis. More...
 
template<typename valType , qualifier P>
GLM_FUNC_DECL mat< 4, 4, valType, P > scaleBias (valType scale, valType bias)
 Build a scale bias matrix. More...
 
template<typename valType , qualifier P>
GLM_FUNC_DECL mat< 4, 4, valType, P > scaleBias (mat< 4, 4, valType, P > const &m, valType scale, valType bias)
 Build a scale bias matrix. More...
 
template<typename T , qualifier P>
GLM_FUNC_DECL mat< 3, 3, T, P > shearX2D (mat< 3, 3, T, P > const &m, T y)
 Transforms a matrix with a shearing on X axis. More...
 
template<typename T , qualifier P>
GLM_FUNC_DECL mat< 4, 4, T, P > shearX3D (const mat< 4, 4, T, P > &m, T y, T z)
 Transforms a matrix with a shearing on X axis From GLM_GTX_transform2 extension. More...
 
template<typename T , qualifier P>
GLM_FUNC_DECL mat< 3, 3, T, P > shearY2D (mat< 3, 3, T, P > const &m, T x)
 Transforms a matrix with a shearing on Y axis. More...
 
template<typename T , qualifier P>
GLM_FUNC_DECL mat< 4, 4, T, P > shearY3D (const mat< 4, 4, T, P > &m, T x, T z)
 Transforms a matrix with a shearing on Y axis. More...
 
template<typename T , qualifier P>
GLM_FUNC_DECL mat< 4, 4, T, P > shearZ3D (const mat< 4, 4, T, P > &m, T x, T y)
 Transforms a matrix with a shearing on Z axis. More...
 

Detailed Description

Add extra transformation matrices.

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

Function Documentation

GLM_FUNC_DECL mat<3, 3, T, P> glm::proj2D ( const mat< 3, 3, T, P > &  m,
const vec< 3, T, P > &  normal 
)

Build planar projection matrix along normal axis.

From GLM_GTX_transform2 extension.

GLM_FUNC_DECL mat<4, 4, T, P> glm::proj3D ( const mat< 4, 4, T, P > &  m,
const vec< 3, T, P > &  normal 
)

Build planar projection matrix along normal axis.

From GLM_GTX_transform2 extension.

GLM_FUNC_DECL mat<4, 4, valType, P> glm::scaleBias ( valType  scale,
valType  bias 
)

Build a scale bias matrix.

From GLM_GTX_transform2 extension.

GLM_FUNC_DECL mat<4, 4, valType, P> glm::scaleBias ( mat< 4, 4, valType, P > const &  m,
valType  scale,
valType  bias 
)

Build a scale bias matrix.

From GLM_GTX_transform2 extension.

GLM_FUNC_DECL mat<3, 3, T, P> glm::shearX2D ( mat< 3, 3, T, P > const &  m,
y 
)

Transforms a matrix with a shearing on X axis.

From GLM_GTX_transform2 extension.

GLM_FUNC_DECL mat<4, 4, T, P> glm::shearX3D ( const mat< 4, 4, T, P > &  m,
y,
z 
)

Transforms a matrix with a shearing on X axis From GLM_GTX_transform2 extension.

GLM_FUNC_DECL mat<3, 3, T, P> glm::shearY2D ( mat< 3, 3, T, P > const &  m,
x 
)

Transforms a matrix with a shearing on Y axis.

From GLM_GTX_transform2 extension.

GLM_FUNC_DECL mat<4, 4, T, P> glm::shearY3D ( const mat< 4, 4, T, P > &  m,
x,
z 
)

Transforms a matrix with a shearing on Y axis.

From GLM_GTX_transform2 extension.

GLM_FUNC_DECL mat<4, 4, T, P> glm::shearZ3D ( const mat< 4, 4, T, P > &  m,
x,
y 
)

Transforms a matrix with a shearing on Z axis.

From GLM_GTX_transform2 extension.