0.9.9 API documentation
Functions
GLM_GTX_transform2

Functions

template<typename T , qualifier Q>
GLM_FUNC_DECL mat< 3, 3, T, Q > proj2D (mat< 3, 3, T, Q > const &m, vec< 3, T, Q > const &normal)
 
template<typename T , qualifier Q>
GLM_FUNC_DECL mat< 4, 4, T, Q > proj3D (mat< 4, 4, T, Q > const &m, vec< 3, T, Q > const &normal)
 
template<typename T , qualifier Q>
GLM_FUNC_DECL mat< 4, 4, T, Q > scaleBias (T scale, T bias)
 
template<typename T , qualifier Q>
GLM_FUNC_DECL mat< 4, 4, T, Q > scaleBias (mat< 4, 4, T, Q > const &m, T scale, T bias)
 
template<typename T , qualifier Q>
GLM_FUNC_DECL mat< 3, 3, T, Q > shearX2D (mat< 3, 3, T, Q > const &m, T y)
 
template<typename T , qualifier Q>
GLM_FUNC_DECL mat< 4, 4, T, Q > shearX3D (mat< 4, 4, T, Q > const &m, T y, T z)
 
template<typename T , qualifier Q>
GLM_FUNC_DECL mat< 3, 3, T, Q > shearY2D (mat< 3, 3, T, Q > const &m, T x)
 
template<typename T , qualifier Q>
GLM_FUNC_DECL mat< 4, 4, T, Q > shearY3D (mat< 4, 4, T, Q > const &m, T x, T z)
 
template<typename T , qualifier Q>
GLM_FUNC_DECL mat< 4, 4, T, Q > shearZ3D (mat< 4, 4, T, Q > const &m, T x, T y)
 

Detailed Description

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

Add extra transformation matrices

Function Documentation

◆ proj2D()

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

Build planar projection matrix along normal axis.

From GLM_GTX_transform2 extension.

◆ proj3D()

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

Build planar projection matrix along normal axis.

From GLM_GTX_transform2 extension.

◆ scaleBias() [1/2]

GLM_FUNC_DECL mat<4, 4, T, Q> glm::scaleBias ( scale,
bias 
)

Build a scale bias matrix.

From GLM_GTX_transform2 extension.

◆ scaleBias() [2/2]

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

Build a scale bias matrix.

From GLM_GTX_transform2 extension.

◆ shearX2D()

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

Transforms a matrix with a shearing on X axis.

From GLM_GTX_transform2 extension.

◆ shearX3D()

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

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

◆ shearY2D()

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

Transforms a matrix with a shearing on Y axis.

From GLM_GTX_transform2 extension.

◆ shearY3D()

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

Transforms a matrix with a shearing on Y axis.

From GLM_GTX_transform2 extension.

◆ shearZ3D()

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

Transforms a matrix with a shearing on Z axis.

From GLM_GTX_transform2 extension.