17 #include "../mat3x3.hpp"
18 #include "../vec2.hpp"
20 #ifndef GLM_ENABLE_EXPERIMENTAL
21 # error "GLM: GLM_GTX_matrix_transform_2d is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
24 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
25 # pragma message("GLM: GLM_GTX_matrix_transform_2d extension included")
37 template<
typename T, qualifier P>
38 GLM_FUNC_QUALIFIER mat<3, 3, T, P>
translate(
39 mat<3, 3, T, P>
const& m,
40 vec<2, T, P>
const & v);
46 template<
typename T, qualifier P>
47 GLM_FUNC_QUALIFIER mat<3, 3, T, P>
rotate(
48 mat<3, 3, T, P>
const& m,
55 template<
typename T, qualifier P>
56 GLM_FUNC_QUALIFIER mat<3, 3, T, P>
scale(
57 mat<3, 3, T, P>
const& m,
58 vec<2, T, P>
const & v);
64 template<
typename T, qualifier P>
65 GLM_FUNC_QUALIFIER mat<3, 3, T, P>
shearX(
66 mat<3, 3, T, P>
const& m,
73 template<
typename T, qualifier P>
74 GLM_FUNC_QUALIFIER mat<3, 3, T, P>
shearY(
75 mat<3, 3, T, P>
const& m,
81 #include "matrix_transform_2d.inl"
GLM_FUNC_QUALIFIER mat< 3, 3, T, P > shearX(mat< 3, 3, T, P > const &m, T y)
Builds an horizontal (parallel to the x axis) shear 3 * 3 matrix.
GLM_FUNC_QUALIFIER mat< 3, 3, T, P > scale(mat< 3, 3, T, P > const &m, vec< 2, T, P > const &v)
Builds a scale 3 * 3 matrix created from a vector of 2 components.
GLM_FUNC_QUALIFIER mat< 3, 3, T, P > translate(mat< 3, 3, T, P > const &m, vec< 2, T, P > const &v)
Builds a translation 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 mat< 3, 3, T, P > rotate(mat< 3, 3, T, P > const &m, T angle)
Builds a rotation 3 * 3 matrix created from an angle.
GLM_FUNC_QUALIFIER mat< 3, 3, T, P > shearY(mat< 3, 3, T, P > const &m, T x)
Builds a vertical (parallel to the y axis) shear 3 * 3 matrix.