GLM: transform2.hpp Source File

GLM 0.9.5

- Main Page
- Related Pages
- Modules
- Namespaces
- Files

- File List

transform2.hpp
Go to the documentation of this file.
1
39 #ifndef GLM_GTX_transform2
40 #define GLM_GTX_transform2
41
42 // Dependency:
43 #include "../glm.hpp"
44 #include "../gtx/transform.hpp"
45
46 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
47 # pragma message("GLM: GLM_GTX_transform2 extension included")
48 #endif
49
50 namespace glm
51 {
54
57 template <typename T, precision P>
58 detail::tmat3x3<T, P> shearX2D(
59 detail::tmat3x3<T, P> const & m,
60 T y);
61
64 template <typename T, precision P>
65 detail::tmat3x3<T, P> shearY2D(
66 detail::tmat3x3<T, P> const & m,
67 T x);
68
71 template <typename T, precision P>
72 detail::tmat4x4<T, P> shearX3D(
73 const detail::tmat4x4<T, P> & m,
74 T y,
75 T z);
76
79 template <typename T, precision P>
80 detail::tmat4x4<T, P> shearY3D(
81 const detail::tmat4x4<T, P> & m,
82 T x,
83 T z);
84
87 template <typename T, precision P>
88 detail::tmat4x4<T, P> shearZ3D(
89 const detail::tmat4x4<T, P> & m,
90 T x,
91 T y);
92
93 //template <typename T> GLM_FUNC_QUALIFIER detail::tmat4x4<T, P> shear(const detail::tmat4x4<T, P> & m, shearPlane, planePoint, angle)
94 // Identity + tan(angle) * cross(Normal, OnPlaneVector) 0
95 // - dot(PointOnPlane, normal) * OnPlaneVector 1
96
97 // Reflect functions seem to don't work
98 //template <typename T> detail::tmat3x3<T, P> reflect2D(const detail::tmat3x3<T, P> & m, const detail::tvec3<T, P>& normal){return reflect2DGTX(m, normal);} //!< \brief Build a reflection matrix (from GLM_GTX_transform2 extension)
99 //template <typename T> detail::tmat4x4<T, P> reflect3D(const detail::tmat4x4<T, P> & m, const detail::tvec3<T, P>& normal){return reflect3DGTX(m, normal);} //!< \brief Build a reflection matrix (from GLM_GTX_transform2 extension)
100
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);
107
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);
114
117 template <typename valType, precision P>
118 detail::tmat4x4<valType, P> scaleBias(
119 valType scale,
120 valType bias);
121
124 template <typename valType, precision P>
125 detail::tmat4x4<valType, P> scaleBias(
126 detail::tmat4x4<valType, P> const & m,
127 valType scale,
128 valType bias);
129
131 }// namespace glm
132
133 #include "transform2.inl"
134
135 #endif//GLM_GTX_transform2
glm::scaleBias
detail::tmat4x4< valType, P > scaleBias(valType scale, valType bias)
Build a scale bias matrix.
glm::shearX2D
detail::tmat3x3< T, P > shearX2D(detail::tmat3x3< T, P > const &m, T y)
Transforms a matrix with a shearing on X axis.
glm::proj2D
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::scale
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.
glm::shearY3D
detail::tmat4x4< T, P > shearY3D(const detail::tmat4x4< T, P > &m, T x, T z)
Transforms a matrix with a shearing on Y axis.
glm::proj3D
detail::tmat4x4< T, P > proj3D(const detail::tmat4x4< T, P > &m, const detail::tvec3< T, P > &normal)
Build planar projection matrix along normal axis.
glm::shearZ3D
detail::tmat4x4< T, P > shearZ3D(const detail::tmat4x4< T, P > &m, T x, T y)
Transforms a matrix with a shearing on Z axis.
glm::shearY2D
detail::tmat3x3< T, P > shearY2D(detail::tmat3x3< T, P > const &m, T x)
Transforms a matrix with a shearing on Y axis.
glm::shearX3D
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.