transform2.hpp
Go to the documentation of this file.
1 
39 #pragma once
40 
41 // Dependency:
42 #include "../glm.hpp"
43 #include "../gtx/transform.hpp"
44 
45 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
46 # pragma message("GLM: GLM_GTX_transform2 extension included")
47 #endif
48 
49 namespace glm
50 {
53 
56  template <typename T, precision P>
57  GLM_FUNC_DECL detail::tmat3x3<T, P> shearX2D(
58  detail::tmat3x3<T, P> const & m,
59  T y);
60 
63  template <typename T, precision P>
64  GLM_FUNC_DECL detail::tmat3x3<T, P> shearY2D(
65  detail::tmat3x3<T, P> const & m,
66  T x);
67 
70  template <typename T, precision P>
71  GLM_FUNC_DECL detail::tmat4x4<T, P> shearX3D(
72  const detail::tmat4x4<T, P> & m,
73  T y,
74  T z);
75 
78  template <typename T, precision P>
79  GLM_FUNC_DECL detail::tmat4x4<T, P> shearY3D(
80  const detail::tmat4x4<T, P> & m,
81  T x,
82  T z);
83 
86  template <typename T, precision P>
87  GLM_FUNC_DECL detail::tmat4x4<T, P> shearZ3D(
88  const detail::tmat4x4<T, P> & m,
89  T x,
90  T y);
91 
92  //template <typename T> GLM_FUNC_QUALIFIER detail::tmat4x4<T, P> shear(const detail::tmat4x4<T, P> & m, shearPlane, planePoint, angle)
93  // Identity + tan(angle) * cross(Normal, OnPlaneVector) 0
94  // - dot(PointOnPlane, normal) * OnPlaneVector 1
95 
96  // Reflect functions seem to don't work
97  //template <typename T> detail::tmat3x3<T, P> reflect2D(const detail::tmat3x3<T, P> & m, const detail::tvec3<T, P>& normal){return reflect2DGTX(m, normal);} //!< \brief Build a reflection matrix (from GLM_GTX_transform2 extension)
98  //template <typename T> detail::tmat4x4<T, P> reflect3D(const detail::tmat4x4<T, P> & m, const detail::tvec3<T, P>& normal){return reflect3DGTX(m, normal);} //!< \brief Build a reflection matrix (from GLM_GTX_transform2 extension)
99 
102  template <typename T, precision P>
103  GLM_FUNC_DECL detail::tmat3x3<T, P> proj2D(
104  const detail::tmat3x3<T, P> & m,
105  const detail::tvec3<T, P>& normal);
106 
109  template <typename T, precision P>
110  GLM_FUNC_DECL detail::tmat4x4<T, P> proj3D(
111  const detail::tmat4x4<T, P> & m,
112  const detail::tvec3<T, P>& normal);
113 
116  template <typename valType, precision P>
117  GLM_FUNC_DECL detail::tmat4x4<valType, P> scaleBias(
118  valType scale,
119  valType bias);
120 
123  template <typename valType, precision P>
124  GLM_FUNC_DECL detail::tmat4x4<valType, P> scaleBias(
125  detail::tmat4x4<valType, P> const & m,
126  valType scale,
127  valType bias);
128 
130 }// namespace glm
131 
132 #include "transform2.inl"
glm::proj3D
GLM_FUNC_DECL detail::tmat4x4< T, P > proj3D(const detail::tmat4x4< T, P > &m, const detail::tvec3< T, P > &normal)
glm::shearZ3D
GLM_FUNC_DECL detail::tmat4x4< T, P > shearZ3D(const detail::tmat4x4< T, P > &m, T x, T y)
glm::scale
GLM_FUNC_DECL detail::tmat4x4< T, P > scale(detail::tmat4x4< T, P > const &m, detail::tvec3< T, P > const &v)
glm::shearX3D
GLM_FUNC_DECL detail::tmat4x4< T, P > shearX3D(const detail::tmat4x4< T, P > &m, T y, T z)
glm::shearX2D
GLM_FUNC_DECL detail::tmat3x3< T, P > shearX2D(detail::tmat3x3< T, P > const &m, T y)
glm::shearY3D
GLM_FUNC_DECL detail::tmat4x4< T, P > shearY3D(const detail::tmat4x4< T, P > &m, T x, T z)
glm::proj2D
GLM_FUNC_DECL detail::tmat3x3< T, P > proj2D(const detail::tmat3x3< T, P > &m, const detail::tvec3< T, P > &normal)
glm
Definition: _literals.hpp:31
Eigen::Triplet
glm::scaleBias
GLM_FUNC_DECL detail::tmat4x4< valType, P > scaleBias(valType scale, valType bias)
glm::shearY2D
GLM_FUNC_DECL detail::tmat3x3< T, P > shearY2D(detail::tmat3x3< T, P > const &m, T x)
GLM_FUNC_DECL
#define GLM_FUNC_DECL
Definition: setup.hpp:728


rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jul 25 2024 02:50:22