39 #ifndef GLM_GTX_transform2
40 #define GLM_GTX_transform2
44 #include "../gtx/transform.hpp"
46 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
47 # pragma message("GLM: GLM_GTX_transform2 extension included")
57 template <
typename T, precision P>
59 detail::tmat3x3<T, P>
const & m,
64 template <
typename T, precision P>
66 detail::tmat3x3<T, P>
const & m,
71 template <
typename T, precision P>
73 const detail::tmat4x4<T, P> & m,
79 template <
typename T, precision P>
81 const detail::tmat4x4<T, P> & m,
87 template <
typename T, precision P>
89 const detail::tmat4x4<T, P> & m,
103 template <
typename T, precision P>
104 detail::tmat3x3<T, P>
proj2D(
105 const detail::tmat3x3<T, P> & m,
106 const detail::tvec3<T, P>& normal);
110 template <
typename T, precision P>
111 detail::tmat4x4<T, P>
proj3D(
112 const detail::tmat4x4<T, P> & m,
113 const detail::tvec3<T, P>& normal);
117 template <
typename valType, precision P>
124 template <
typename valType, precision P>
126 detail::tmat4x4<valType, P>
const & m,
133 #include "transform2.inl"
135 #endif//GLM_GTX_transform2
detail::tmat4x4< valType, P > scaleBias(valType scale, valType bias)
Build a scale bias matrix.
detail::tmat3x3< T, P > shearX2D(detail::tmat3x3< T, P > const &m, T y)
Transforms a matrix with a shearing on X axis.
detail::tmat3x3< T, P > proj2D(const detail::tmat3x3< T, P > &m, const detail::tvec3< T, P > &normal)
Build planar projection matrix along normal axis.
GLM_FUNC_DECL detail::tmat4x4< T, P > scale(detail::tmat4x4< T, P > const &m, detail::tvec3< T, P > const &v)
Builds a scale 4 * 4 matrix created from 3 scalars.
detail::tmat4x4< T, P > shearY3D(const detail::tmat4x4< T, P > &m, T x, T z)
Transforms a matrix with a shearing on Y axis.
detail::tmat4x4< T, P > proj3D(const detail::tmat4x4< T, P > &m, const detail::tvec3< T, P > &normal)
Build planar projection matrix along normal axis.
detail::tmat4x4< T, P > shearZ3D(const detail::tmat4x4< T, P > &m, T x, T y)
Transforms a matrix with a shearing on Z axis.
detail::tmat3x3< T, P > shearY2D(detail::tmat3x3< T, P > const &m, T x)
Transforms a matrix with a shearing on Y axis.
detail::tmat4x4< T, P > shearX3D(const detail::tmat4x4< T, P > &m, T y, T z)
Transforms a matrix with a shearing on X axis From GLM_GTX_transform2 extension.