1.0.0 API documentation: handed_coordinate_space.hpp Source File

| 1.0.0 API documentation

handed_coordinate_space.hpp
Go to the documentation of this file.
1
13 #pragma once
14
15 // Dependency:
16 #include "../glm.hpp"
17
18 #ifndef GLM_ENABLE_EXPERIMENTAL
19 # error "GLM: GLM_GTX_handed_coordinate_space 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."
20 #elif GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
21 # pragma message("GLM: GLM_GTX_handed_coordinate_space extension included")
22 #endif
23
24 namespace glm
25 {
28
31 template<typename T, qualifier Q>
32 GLM_FUNC_DECL bool rightHanded(
33 vec<3, T, Q> const& tangent,
34 vec<3, T, Q> const& binormal,
35 vec<3, T, Q> const& normal);
36
39 template<typename T, qualifier Q>
40 GLM_FUNC_DECL bool leftHanded(
41 vec<3, T, Q> const& tangent,
42 vec<3, T, Q> const& binormal,
43 vec<3, T, Q> const& normal);
44
46 }// namespace glm
47
48 #include "handed_coordinate_space.inl"
glm::leftHanded
GLM_FUNC_DECL bool leftHanded(vec< 3, T, Q > const &tangent, vec< 3, T, Q > const &binormal, vec< 3, T, Q > const &normal)
Return if a trihedron left handed or not.
glm::rightHanded
GLM_FUNC_DECL bool rightHanded(vec< 3, T, Q > const &tangent, vec< 3, T, Q > const &binormal, vec< 3, T, Q > const &normal)
Return if a trihedron right handed or not.