1.5 KB、50行 生 Blame 履歴
1/// @ref gtx_handed_coordinate_space
2/// @file glm/gtx/handed_coordinate_space.hpp
3///
4/// @see core (dependence)
5///
6/// @defgroup gtx_handed_coordinate_space GLM_GTX_handed_coordinate_space
7/// @ingroup gtx
8///
9/// Include <glm/gtx/handed_coordinate_system.hpp> to use the features of this extension.
10///
11/// To know if a set of three basis vectors defines a right or left-handed coordinate system.
12
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#endif
21
22#if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
23# pragma message("GLM: GLM_GTX_handed_coordinate_space extension included")
24#endif
25
26namespace glm
27{
28 /// @addtogroup gtx_handed_coordinate_space
29 /// @{
30
31 //! Return if a trihedron right handed or not.
32 //! From GLM_GTX_handed_coordinate_space extension.
33 template<typename T, qualifier Q>
34 GLM_FUNC_DECL bool rightHanded(
35 vec<3, T, Q> const& tangent,
36 vec<3, T, Q> const& binormal,
37 vec<3, T, Q> const& normal);
38
39 //! Return if a trihedron left handed or not.
40 //! From GLM_GTX_handed_coordinate_space extension.
41 template<typename T, qualifier Q>
42 GLM_FUNC_DECL bool leftHanded(
43 vec<3, T, Q> const& tangent,
44 vec<3, T, Q> const& binormal,
45 vec<3, T, Q> const& normal);
46
47 /// @}
48}// namespace glm
49
50#include "handed_coordinate_space.inl"