GLM  0.9.5
handed_coordinate_space.hpp
Go to the documentation of this file.
1 
38 #ifndef GLM_GTX_handed_coordinate_space
39 #define GLM_GTX_handed_coordinate_space
40 
41 // Dependency:
42 #include "../glm.hpp"
43 
44 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
45 # pragma message("GLM: GLM_GTX_handed_coordinate_space extension included")
46 #endif
47 
48 namespace glm
49 {
52 
55  template <typename T, precision P>
56  bool rightHanded(
57  detail::tvec3<T, P> const & tangent,
58  detail::tvec3<T, P> const & binormal,
59  detail::tvec3<T, P> const & normal);
60 
63  template <typename T, precision P>
64  bool leftHanded(
65  detail::tvec3<T, P> const & tangent,
66  detail::tvec3<T, P> const & binormal,
67  detail::tvec3<T, P> const & normal);
68 
70 }// namespace glm
71 
72 #include "handed_coordinate_space.inl"
73 
74 #endif//GLM_GTX_handed_coordinate_space
bool leftHanded(detail::tvec3< T, P > const &tangent, detail::tvec3< T, P > const &binormal, detail::tvec3< T, P > const &normal)
Return if a trihedron left handed or not.
bool rightHanded(detail::tvec3< T, P > const &tangent, detail::tvec3< T, P > const &binormal, detail::tvec3< T, P > const &normal)
Return if a trihedron right handed or not.