45 #include "../mat3x3.hpp"
46 #include "../vec2.hpp"
49 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
50 # pragma message("GLM: GLM_GTX_matrix_transform_2d extension included")
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);
71 template <
typename T, precision P>
72 GLM_FUNC_QUALIFIER tmat3x3<T, P>
rotate(
73 tmat3x3<T, P>
const & m,
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);
89 template <
typename T, precision P>
90 GLM_FUNC_QUALIFIER tmat3x3<T, P>
shearX(
91 tmat3x3<T, P>
const & m,
98 template <
typename T, precision P>
99 GLM_FUNC_QUALIFIER tmat3x3<T, P>
shearY(
100 tmat3x3<T, P>
const & m,
106 #include "matrix_transform_2d.inl"
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_FUNC_DECL T angle(tquat< T, P > const &x)
Returns the quaternion rotation angle.
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_FUNC_QUALIFIER tmat3x3< T, P > rotate(tmat3x3< T, P > const &m, T angle)
Builds a rotation 3 * 3 matrix created from an angle.
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_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.