GLM: transform.hpp Source File

GLM 0.9.5

- Main Page
- Related Pages
- Modules
- Namespaces
- Files

- File List

transform.hpp
Go to the documentation of this file.
1
41 #ifndef GLM_GTX_transform
42 #define GLM_GTX_transform
43
44 // Dependency:
45 #include "../glm.hpp"
46 #include "../gtc/matrix_transform.hpp"
47
48 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
49 # pragma message("GLM: GLM_GTX_transform extension included")
50 #endif
51
52 namespace glm
53 {
56
60 template <typename T, precision P>
61 detail::tmat4x4<T, P> translate(
62 detail::tvec3<T, P> const & v);
63
67 template <typename T, precision P>
68 detail::tmat4x4<T, P> rotate(
69 T angle,
70 detail::tvec3<T, P> const & v);
71
75 template <typename T, precision P>
76 detail::tmat4x4<T, P> scale(
77 detail::tvec3<T, P> const & v);
78
80 }// namespace glm
81
82 #include "transform.inl"
83
84 #endif//GLM_GTX_transform
glm::rotate
GLM_FUNC_DECL detail::tmat4x4< T, P > rotate(detail::tmat4x4< T, P > const &m, T const &angle, detail::tvec3< T, P > const &axis)
Builds a rotation 4 * 4 matrix created from an axis vector and an angle.
glm::angle
GLM_FUNC_DECL T angle(detail::tquat< T, P > const &x)
Returns the quaternion rotation angle.
glm::scale
GLM_FUNC_DECL detail::tmat4x4< T, P > scale(detail::tmat4x4< T, P > const &m, detail::tvec3< T, P > const &v)
Builds a scale 4 * 4 matrix created from 3 scalars.
glm::translate
GLM_FUNC_DECL detail::tmat4x4< T, P > translate(detail::tmat4x4< T, P > const &m, detail::tvec3< T, P > const &v)
Builds a translation 4 * 4 matrix created from a vector of 3 components.