0.9.8: matrix_transform_2d.hpp Source File

| 0.9.8

- Main Page
- Modules
- Files

- File List

matrix_transform_2d.hpp
Go to the documentation of this file.
1
14 #pragma once
15
16 // Dependency:
17 #include "../mat3x3.hpp"
18 #include "../vec2.hpp"
19
20
21 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
22 # pragma message("GLM: GLM_GTX_matrix_transform_2d extension included")
23 #endif
24
25 namespace glm
26 {
29
34 template <typename T, precision P>
35 GLM_FUNC_QUALIFIER tmat3x3<T, P> translate(
36 tmat3x3<T, P> const & m,
37 tvec2<T, P> const & v);
38
43 template <typename T, precision P>
44 GLM_FUNC_QUALIFIER tmat3x3<T, P> rotate(
45 tmat3x3<T, P> const & m,
46 T angle);
47
52 template <typename T, precision P>
53 GLM_FUNC_QUALIFIER tmat3x3<T, P> scale(
54 tmat3x3<T, P> const & m,
55 tvec2<T, P> const & v);
56
61 template <typename T, precision P>
62 GLM_FUNC_QUALIFIER tmat3x3<T, P> shearX(
63 tmat3x3<T, P> const & m,
64 T y);
65
70 template <typename T, precision P>
71 GLM_FUNC_QUALIFIER tmat3x3<T, P> shearY(
72 tmat3x3<T, P> const & m,
73 T x);
74
76 }//namespace glm
77
78 #include "matrix_transform_2d.inl"
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
Definition: _noise.hpp:11
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::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.
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.