summaryrefslogtreecommitdiffstats
path: root/external/include/glm/gtx/handed_coordinate_space.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'external/include/glm/gtx/handed_coordinate_space.hpp')
-rw-r--r--external/include/glm/gtx/handed_coordinate_space.hpp24
1 files changed, 14 insertions, 10 deletions
diff --git a/external/include/glm/gtx/handed_coordinate_space.hpp b/external/include/glm/gtx/handed_coordinate_space.hpp
index 2ee5175..1d0d410 100644
--- a/external/include/glm/gtx/handed_coordinate_space.hpp
+++ b/external/include/glm/gtx/handed_coordinate_space.hpp
@@ -6,15 +6,19 @@
/// @defgroup gtx_handed_coordinate_space GLM_GTX_handed_coordinate_space
/// @ingroup gtx
///
-/// @brief To know if a set of three basis vectors defines a right or left-handed coordinate system.
+/// Include <glm/gtx/handed_coordinate_system.hpp> to use the features of this extension.
///
-/// <glm/gtx/handed_coordinate_system.hpp> need to be included to use these functionalities.
+/// To know if a set of three basis vectors defines a right or left-handed coordinate system.
#pragma once
// Dependency:
#include "../glm.hpp"
+#ifndef GLM_ENABLE_EXPERIMENTAL
+# 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."
+#endif
+
#if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
# pragma message("GLM: GLM_GTX_handed_coordinate_space extension included")
#endif
@@ -26,19 +30,19 @@ namespace glm
//! Return if a trihedron right handed or not.
//! From GLM_GTX_handed_coordinate_space extension.
- template <typename T, precision P>
+ template<typename T, qualifier Q>
GLM_FUNC_DECL bool rightHanded(
- tvec3<T, P> const & tangent,
- tvec3<T, P> const & binormal,
- tvec3<T, P> const & normal);
+ 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.
//! From GLM_GTX_handed_coordinate_space extension.
- template <typename T, precision P>
+ template<typename T, qualifier Q>
GLM_FUNC_DECL bool leftHanded(
- tvec3<T, P> const & tangent,
- tvec3<T, P> const & binormal,
- tvec3<T, P> const & normal);
+ vec<3, T, Q> const& tangent,
+ vec<3, T, Q> const& binormal,
+ vec<3, T, Q> const& normal);
/// @}
}// namespace glm