summaryrefslogtreecommitdiffstats
path: root/Project/glm/ext/quaternion_relational.hpp
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2020-07-08 12:05:44 -0300
committerThales Lima Oliveira <thaleslima.ufu@gmail.com>2020-07-08 12:05:44 -0300
commitcc2e40324d884bc0417809980a696a5084e661d7 (patch)
tree9620dfa32e44af5c125aac2c9bce36011ad27b8b /Project/glm/ext/quaternion_relational.hpp
parentae765504642759ba4addbf91d62f167ba5f063a3 (diff)
downloadPSP.git-cc2e40324d884bc0417809980a696a5084e661d7.tar.gz
PSP.git-cc2e40324d884bc0417809980a696a5084e661d7.tar.xz
PSP.git-cc2e40324d884bc0417809980a696a5084e661d7.zip
GLM folder changed
Diffstat (limited to 'Project/glm/ext/quaternion_relational.hpp')
-rw-r--r--Project/glm/ext/quaternion_relational.hpp62
1 files changed, 62 insertions, 0 deletions
diff --git a/Project/glm/ext/quaternion_relational.hpp b/Project/glm/ext/quaternion_relational.hpp
new file mode 100644
index 0000000..7aa121d
--- /dev/null
+++ b/Project/glm/ext/quaternion_relational.hpp
@@ -0,0 +1,62 @@
+/// @ref ext_quaternion_relational
+/// @file glm/ext/quaternion_relational.hpp
+///
+/// @defgroup ext_quaternion_relational GLM_EXT_quaternion_relational
+/// @ingroup ext
+///
+/// Exposes comparison functions for quaternion types that take a user defined epsilon values.
+///
+/// Include <glm/ext/quaternion_relational.hpp> to use the features of this extension.
+///
+/// @see core_vector_relational
+/// @see ext_vector_relational
+/// @see ext_matrix_relational
+/// @see ext_quaternion_float
+/// @see ext_quaternion_double
+
+#pragma once
+
+// Dependency:
+#include "../vector_relational.hpp"
+
+#if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
+# pragma message("GLM: GLM_EXT_quaternion_relational extension included")
+#endif
+
+namespace glm
+{
+ /// @addtogroup ext_quaternion_relational
+ /// @{
+
+ /// Returns the component-wise comparison of result x == y.
+ ///
+ /// @tparam T Floating-point scalar types
+ /// @tparam Q Value from qualifier enum
+ template<typename T, qualifier Q>
+ GLM_FUNC_DECL vec<4, bool, Q> equal(qua<T, Q> const& x, qua<T, Q> const& y);
+
+ /// Returns the component-wise comparison of |x - y| < epsilon.
+ ///
+ /// @tparam T Floating-point scalar types
+ /// @tparam Q Value from qualifier enum
+ template<typename T, qualifier Q>
+ GLM_FUNC_DECL vec<4, bool, Q> equal(qua<T, Q> const& x, qua<T, Q> const& y, T epsilon);
+
+ /// Returns the component-wise comparison of result x != y.
+ ///
+ /// @tparam T Floating-point scalar types
+ /// @tparam Q Value from qualifier enum
+ template<typename T, qualifier Q>
+ GLM_FUNC_DECL vec<4, bool, Q> notEqual(qua<T, Q> const& x, qua<T, Q> const& y);
+
+ /// Returns the component-wise comparison of |x - y| >= epsilon.
+ ///
+ /// @tparam T Floating-point scalar types
+ /// @tparam Q Value from qualifier enum
+ template<typename T, qualifier Q>
+ GLM_FUNC_DECL vec<4, bool, Q> notEqual(qua<T, Q> const& x, qua<T, Q> const& y, T epsilon);
+
+ /// @}
+} //namespace glm
+
+#include "quaternion_relational.inl"