0.9.9 API documenation: matrix_transform_2d.hpp Source File

| 0.9.9 API documenation

- 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 #ifndef GLM_ENABLE_EXPERIMENTAL
21 # error "GLM: GLM_GTX_matrix_transform_2d is an experimetal extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
22 #endif
23
24 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
25 # pragma message("GLM: GLM_GTX_matrix_transform_2d extension included")
26 #endif
27
28 namespace glm
29 {
32
37 template <typename T, precision P>
38 GLM_FUNC_QUALIFIER tmat3x3<T, P> translate(
39 tmat3x3<T, P> const & m,
40 tvec2<T, P> const & v);
41
46 template <typename T, precision P>
47 GLM_FUNC_QUALIFIER tmat3x3<T, P> rotate(
48 tmat3x3<T, P> const & m,
49 T angle);
50
55 template <typename T, precision P>
56 GLM_FUNC_QUALIFIER tmat3x3<T, P> scale(
57 tmat3x3<T, P> const & m,
58 tvec2<T, P> const & v);
59
64 template <typename T, precision P>
65 GLM_FUNC_QUALIFIER tmat3x3<T, P> shearX(
66 tmat3x3<T, P> const & m,
67 T y);
68
73 template <typename T, precision P>
74 GLM_FUNC_QUALIFIER tmat3x3<T, P> shearY(
75 tmat3x3<T, P> const & m,
76 T x);
77
79 }//namespace glm
80
81 #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::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:11
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.