master
ブランチ master
ShaderPlayground / deps / glm / glm / gtx / exterior_product.hpp
1.1 KB、41行 生 Blame 履歴
1/// @ref gtx_exterior_product
2/// @file glm/gtx/exterior_product.hpp
3///
4/// @see core (dependence)
5/// @see gtx_exterior_product (dependence)
6///
7/// @defgroup gtx_exterior_product GLM_GTX_exterior_product
8/// @ingroup gtx
9///
10/// Include <glm/gtx/exterior_product.hpp> to use the features of this extension.
11///
12/// @brief Allow to perform bit operations on integer values
13
14#pragma once
15
16// Dependencies
17#include "../detail/setup.hpp"
18#include "../detail/qualifier.hpp"
19
20#if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
21# pragma message("GLM: GLM_GTX_exterior_product extension included")
22#endif
23
24namespace glm
25{
26 /// @addtogroup gtx_exterior_product
27 /// @{
28
29 /// Returns the cross product of x and y.
30 ///
31 /// @tparam T Floating-point scalar types
32 /// @tparam Q Value from qualifier enum
33 ///
34 /// @see <a href="https://en.wikipedia.org/wiki/Exterior_algebra#Cross_and_triple_products">Exterior product</a>
35 template<typename T, qualifier Q>
36 GLM_FUNC_DECL T cross(vec<2, T, Q> const& v, vec<2, T, Q> const& u);
37
38 /// @}
39} //namespace glm
40
41#include "exterior_product.inl"