Flow Visualisation
transform.hpp
Go to the documentation of this file.
1 
41 #ifndef GLM_GTX_transform
42 #define GLM_GTX_transform GLM_VERSION
43 
44 // Dependency:
45 #include "../glm.hpp"
46 #include "../gtc/matrix_transform.hpp"
47 
48 #if(defined(GLM_MESSAGES) && !defined(glm_ext))
49 # pragma message("GLM: GLM_GTX_transform extension included")
50 #endif
51 
52 namespace glm
53 {
56 
59  // - See also: \link glm::translate GLM_GTC_matrix_transform \endlink
60  template <typename T>
61  detail::tmat4x4<T> translate(
62  T x, T y, T z);
63 
66  // - See also: \link glm::translate GLM_GTC_matrix_transform \endlink
67  template <typename T>
68  detail::tmat4x4<T> translate(
69  detail::tmat4x4<T> const & m,
70  T x, T y, T z);
71 
74  // - See also: \link glm::translate GLM_GTC_matrix_transform \endlink
75  template <typename T>
76  detail::tmat4x4<T> translate(
77  detail::tvec3<T> const & v);
78 
81  // - See also: \link glm::rotate GLM_GTC_matrix_transform \endlink
82  template <typename T>
83  detail::tmat4x4<T> rotate(
84  T angle,
85  T x, T y, T z);
86 
89  // - See also: \link glm::rotate GLM_GTC_matrix_transform \endlink
90  template <typename T>
91  detail::tmat4x4<T> rotate(
92  T angle,
93  detail::tvec3<T> const & v);
94 
97  // - See also: \link glm::rotate GLM_GTC_matrix_transform \endlink
98  template <typename T>
99  detail::tmat4x4<T> rotate(
100  detail::tmat4x4<T> const & m,
101  T angle,
102  T x, T y, T z);
103 
106  // - See also: \link glm::scale GLM_GTC_matrix_transform \endlink
107  template <typename T>
108  detail::tmat4x4<T> scale(
109  T x, T y, T z);
110 
113  // - See also: \link glm::scale GLM_GTC_matrix_transform \endlink
114  template <typename T>
115  detail::tmat4x4<T> scale(
116  detail::tmat4x4<T> const & m,
117  T x, T y, T z);
118 
121  // - See also: \link glm::scale GLM_GTC_matrix_transform \endlink
122  template <typename T>
123  detail::tmat4x4<T> scale(
124  detail::tvec3<T> const & v);
125 
127 }// namespace glm
128 
129 #include "transform.inl"
130 
131 #endif//GLM_GTX_transform
detail::tmat4x4< T > scale(detail::tmat4x4< T > const &m, detail::tvec3< T > const &v)
Definition: matrix_transform.inl:86
detail::tmat4x4< T > rotate(detail::tmat4x4< T > const &m, T const &angle, detail::tvec3< T > const &axis)
Definition: matrix_transform.inl:45
Definition: _detail.hpp:38
Definition: _swizzle.hpp:43
detail::tmat4x4< T > translate(detail::tmat4x4< T > const &m, detail::tvec3< T > const &v)
Definition: matrix_transform.inl:33
valType angle(detail::tquat< valType > const &x)