orthonormalize.hpp 1.3 KB

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