47 #include "../gtx/transform.hpp"
49 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
50 # pragma message("GLM: GLM_GTX_transform2 extension included")
60 template <
typename T, precision P>
61 GLM_FUNC_DECL tmat3x3<T, P>
shearX2D(
62 tmat3x3<T, P>
const & m,
67 template <
typename T, precision P>
68 GLM_FUNC_DECL tmat3x3<T, P>
shearY2D(
69 tmat3x3<T, P>
const & m,
74 template <
typename T, precision P>
75 GLM_FUNC_DECL tmat4x4<T, P>
shearX3D(
76 const tmat4x4<T, P> & m,
82 template <
typename T, precision P>
83 GLM_FUNC_DECL tmat4x4<T, P>
shearY3D(
84 const tmat4x4<T, P> & m,
90 template <
typename T, precision P>
91 GLM_FUNC_DECL tmat4x4<T, P>
shearZ3D(
92 const tmat4x4<T, P> & m,
106 template <
typename T, precision P>
107 GLM_FUNC_DECL tmat3x3<T, P>
proj2D(
108 const tmat3x3<T, P> & m,
109 const tvec3<T, P>& normal);
113 template <
typename T, precision P>
114 GLM_FUNC_DECL tmat4x4<T, P>
proj3D(
115 const tmat4x4<T, P> & m,
116 const tvec3<T, P>& normal);
120 template <
typename valType, precision P>
121 GLM_FUNC_DECL tmat4x4<valType, P>
scaleBias(
127 template <
typename valType, precision P>
128 GLM_FUNC_DECL tmat4x4<valType, P>
scaleBias(
129 tmat4x4<valType, P>
const & m,
136 #include "transform2.inl"
GLM_FUNC_DECL tmat4x4< valType, P > scaleBias(tmat4x4< valType, P > const &m, valType scale, valType bias)
Build a scale bias matrix.
GLM_FUNC_DECL tmat4x4< T, P > shearZ3D(const tmat4x4< T, P > &m, T x, T y)
Transforms a matrix with a shearing on Z axis.
GLM_FUNC_DECL tmat3x3< T, P > shearY2D(tmat3x3< T, P > const &m, T x)
Transforms a matrix with a shearing on Y axis.
GLM_FUNC_DECL tmat4x4< T, P > shearY3D(const tmat4x4< T, P > &m, T x, T z)
Transforms a matrix with a shearing on Y axis.
GLM_FUNC_DECL tmat3x3< T, P > shearX2D(tmat3x3< T, P > const &m, T y)
Transforms a matrix with a shearing on X axis.
GLM_FUNC_DECL tmat3x3< T, P > proj2D(const tmat3x3< T, P > &m, const tvec3< T, P > &normal)
Build planar projection matrix along normal axis.
GLM_FUNC_DECL tmat4x4< T, P > shearX3D(const tmat4x4< T, P > &m, T y, T z)
Transforms a matrix with a shearing on X axis From GLM_GTX_transform2 extension.
GLM_FUNC_DECL tmat4x4< T, P > proj3D(const tmat4x4< T, P > &m, const tvec3< T, P > &normal)
Build planar projection matrix along normal axis.
GLM_FUNC_DECL tmat4x4< T, P > scale(tmat4x4< T, P > const &m, tvec3< T, P > const &v)
Builds a scale 4 * 4 matrix created from 3 scalars.