0.9.7: matrix_transform_2d.hpp Source File

| 0.9.7

- Main Page
- Modules
- Files

- File List

matrix_transform_2d.hpp
Go to the documentation of this file.
1
42 #pragma once
43
44 // Dependency:
45 #include "../mat3x3.hpp"
46 #include "../vec2.hpp"
47
48
49 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
50 # pragma message("GLM: GLM_GTX_matrix_transform_2d extension included")
51 #endif
52
53 namespace glm
54 {
57
62 template <typename T, precision P>
63 GLM_FUNC_QUALIFIER tmat3x3<T, P> translate(
64 tmat3x3<T, P> const & m,
65 tvec2<T, P> const & v);
66
71 template <typename T, precision P>
72 GLM_FUNC_QUALIFIER tmat3x3<T, P> rotate(
73 tmat3x3<T, P> const & m,
74 T angle);
75
80 template <typename T, precision P>
81 GLM_FUNC_QUALIFIER tmat3x3<T, P> scale(
82 tmat3x3<T, P> const & m,
83 tvec2<T, P> const & v);
84
89 template <typename T, precision P>
90 GLM_FUNC_QUALIFIER tmat3x3<T, P> shearX(
91 tmat3x3<T, P> const & m,
92 T y);
93
98 template <typename T, precision P>
99 GLM_FUNC_QUALIFIER tmat3x3<T, P> shearY(
100 tmat3x3<T, P> const & m,
101 T x);
102
104 }//namespace glm
105
106 #include "matrix_transform_2d.inl"
glm::scale
GLM_FUNC_QUALIFIER tmat3x3< T, P > scale(tmat3x3< T, P > const &m, tvec2< T, P > const &v)
Builds a scale 3 * 3 matrix created from a vector of 2 components.
glm
Definition: _noise.hpp:40
glm::angle
GLM_FUNC_DECL T angle(tquat< T, P > const &x)
Returns the quaternion rotation angle.
glm::translate
GLM_FUNC_QUALIFIER tmat3x3< T, P > translate(tmat3x3< T, P > const &m, tvec2< T, P > const &v)
Builds a translation 3 * 3 matrix created from a vector of 2 components.
glm::rotate
GLM_FUNC_QUALIFIER tmat3x3< T, P > rotate(tmat3x3< T, P > const &m, T angle)
Builds a rotation 3 * 3 matrix created from an angle.
glm::shearY
GLM_FUNC_QUALIFIER tmat3x3< T, P > shearY(tmat3x3< T, P > const &m, T x)
Builds a vertical (parallel to the y axis) shear 3 * 3 matrix.
glm::shearX
GLM_FUNC_QUALIFIER tmat3x3< T, P > shearX(tmat3x3< T, P > const &m, T y)
Builds an horizontal (parallel to the x axis) shear 3 * 3 matrix.