master
ブランチ master
ShaderPlayground / deps / glm / glm / gtx / orthonormalize.hpp
1.3 KB、49行 生 Blame 履歴
1/// @ref gtx_orthonormalize
2/// @file glm/gtx/orthonormalize.hpp
3///
4/// @see core (dependence)
5/// @see gtx_extented_min_max (dependence)
6///
7/// @defgroup gtx_orthonormalize GLM_GTX_orthonormalize
8/// @ingroup gtx
9///
10/// Include <glm/gtx/orthonormalize.hpp> to use the features of this extension.
11///
12/// Orthonormalize matrices.
13
14#pragma once
15
16// Dependency:
17#include "../vec3.hpp"
18#include "../mat3x3.hpp"
19#include "../geometric.hpp"
20
21#ifndef GLM_ENABLE_EXPERIMENTAL
22# error "GLM: GLM_GTX_orthonormalize 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."
23#endif
24
25#if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
26# pragma message("GLM: GLM_GTX_orthonormalize extension included")
27#endif
28
29namespace glm
30{
31 /// @addtogroup gtx_orthonormalize
32 /// @{
33
34 /// Returns the orthonormalized matrix of m.
35 ///
36 /// @see gtx_orthonormalize
37 template<typename T, qualifier Q>
38 GLM_FUNC_DECL mat<3, 3, T, Q> orthonormalize(mat<3, 3, T, Q> const& m);
39
40 /// Orthonormalizes x according y.
41 ///
42 /// @see gtx_orthonormalize
43 template<typename T, qualifier Q>
44 GLM_FUNC_DECL vec<3, T, Q> orthonormalize(vec<3, T, Q> const& x, vec<3, T, Q> const& y);
45
46 /// @}
47}//namespace glm
48
49#include "orthonormalize.inl"