orthonormalize.hpp 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. #pragma once
  14. // Dependency:
  15. #include "../vec3.hpp"
  16. #include "../mat3x3.hpp"
  17. #include "../geometric.hpp"
  18. #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
  19. # ifndef GLM_ENABLE_EXPERIMENTAL
  20. # pragma message("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.")
  21. # else
  22. # pragma message("GLM: GLM_GTX_orthonormalize extension included")
  23. # endif
  24. #endif
  25. namespace glm
  26. {
  27. /// @addtogroup gtx_orthonormalize
  28. /// @{
  29. /// Returns the orthonormalized matrix of m.
  30. ///
  31. /// @see gtx_orthonormalize
  32. template<typename T, qualifier Q>
  33. GLM_FUNC_DECL mat<3, 3, T, Q> orthonormalize(mat<3, 3, T, Q> const& m);
  34. /// Orthonormalizes x according y.
  35. ///
  36. /// @see gtx_orthonormalize
  37. template<typename T, qualifier Q>
  38. GLM_FUNC_DECL vec<3, T, Q> orthonormalize(vec<3, T, Q> const& x, vec<3, T, Q> const& y);
  39. /// @}
  40. }//namespace glm
  41. #include "orthonormalize.inl"