18 #include "../gtx/transform.hpp"
20 #ifndef GLM_ENABLE_EXPERIMENTAL
21 # error "GLM: GLM_GTX_transform2 is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
24 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
25 # pragma message("GLM: GLM_GTX_transform2 extension included")
35 template<
typename T, qualifier P>
36 GLM_FUNC_DECL mat<3, 3, T, P>
shearX2D(
37 mat<3, 3, T, P>
const& m,
42 template<
typename T, qualifier P>
43 GLM_FUNC_DECL mat<3, 3, T, P>
shearY2D(
44 mat<3, 3, T, P>
const& m,
49 template<
typename T, qualifier P>
50 GLM_FUNC_DECL mat<4, 4, T, P>
shearX3D(
51 const mat<4, 4, T, P> & m,
57 template<
typename T, qualifier P>
58 GLM_FUNC_DECL mat<4, 4, T, P>
shearY3D(
59 const mat<4, 4, T, P> & m,
65 template<
typename T, qualifier P>
66 GLM_FUNC_DECL mat<4, 4, T, P>
shearZ3D(
67 const mat<4, 4, T, P> & m,
81 template<
typename T, qualifier P>
82 GLM_FUNC_DECL mat<3, 3, T, P>
proj2D(
83 const mat<3, 3, T, P> & m,
84 const vec<3, T, P>& normal);
88 template<
typename T, qualifier P>
89 GLM_FUNC_DECL mat<4, 4, T, P>
proj3D(
90 const mat<4, 4, T, P> & m,
91 const vec<3, T, P>& normal);
95 template<
typename valType, qualifier P>
96 GLM_FUNC_DECL mat<4, 4, valType, P>
scaleBias(
102 template<
typename valType, qualifier P>
103 GLM_FUNC_DECL mat<4, 4, valType, P>
scaleBias(
104 mat<4, 4, valType, P>
const & m,
111 #include "transform2.inl"
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.
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.
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.
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.
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.
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.
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.
GLM_FUNC_DECL mat< 4, 4, T, P > scale(mat< 4, 4, T, P > const &m, vec< 3, T, P > const &v)
Builds a scale 4 * 4 matrix created from 3 scalars.
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.