glm/glm/gtx/orthonormalize.hpp

46 lines
1.1 KiB
C++
Raw Normal View History

2011-06-07 23:58:37 +00:00
/// @ref gtx_orthonormalize
/// @file glm/gtx/orthonormalize.hpp
///
/// @see core (dependence)
/// @see gtx_extented_min_max (dependence)
///
2012-11-13 16:54:11 +00:00
/// @defgroup gtx_orthonormalize GLM_GTX_orthonormalize
2011-06-07 23:58:37 +00:00
/// @ingroup gtx
///
2011-06-07 23:58:37 +00:00
/// @brief Orthonormalize matrices.
///
2011-06-07 23:58:37 +00:00
/// <glm/gtx/orthonormalize.hpp> need to be included to use these functionalities.
2010-04-29 10:54:07 +00:00
2014-07-13 23:48:27 +00:00
#pragma once
2010-04-29 10:54:07 +00:00
// Dependency:
2014-11-29 21:57:33 +00:00
#include "../vec3.hpp"
#include "../mat3x3.hpp"
#include "../geometric.hpp"
2010-04-29 10:54:07 +00:00
#if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
2011-01-19 17:10:55 +00:00
# pragma message("GLM: GLM_GTX_orthonormalize extension included")
#endif
2011-06-10 15:45:17 +00:00
namespace glm
2010-04-29 10:54:07 +00:00
{
2011-06-07 10:28:11 +00:00
/// @addtogroup gtx_orthonormalize
2011-05-18 14:38:03 +00:00
/// @{
2014-11-29 21:57:33 +00:00
/// Returns the orthonormalized matrix of m.
///
/// @see gtx_orthonormalize
2013-04-23 14:40:07 +00:00
template <typename T, precision P>
2014-11-29 21:57:33 +00:00
GLM_FUNC_DECL tmat3x3<T, P> orthonormalize(tmat3x3<T, P> const & m);
2010-04-29 10:54:07 +00:00
2014-11-29 21:57:33 +00:00
/// Orthonormalizes x according y.
///
/// @see gtx_orthonormalize
2013-04-23 14:40:07 +00:00
template <typename T, precision P>
2014-11-29 21:57:33 +00:00
GLM_FUNC_DECL tvec3<T, P> orthonormalize(tvec3<T, P> const & x, tvec3<T, P> const & y);
2011-05-18 14:38:03 +00:00
/// @}
2010-04-29 10:54:07 +00:00
}//namespace glm
#include "orthonormalize.inl"