mirror of
https://github.com/g-truc/glm.git
synced 2024-12-02 12:34:35 +00:00
54 lines
1.6 KiB
C++
54 lines
1.6 KiB
C++
///////////////////////////////////////////////////////////////////////////////////////////////////
|
|
// OpenGL Mathematics Copyright (c) 2005 - 2009 G-Truc Creation (www.g-truc.net)
|
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
|
// Created : 2005-12-21
|
|
// Updated : 2006-11-13
|
|
// Licence : This source is under MIT License
|
|
// File : glm/gtx/orthonormalize.hpp
|
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
|
// Dependency:
|
|
// - GLM core
|
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef glm_gtx_orthonormalize
|
|
#define glm_gtx_orthonormalize
|
|
|
|
// Dependency:
|
|
#include "../glm.hpp"
|
|
|
|
namespace glm
|
|
{
|
|
namespace test{
|
|
void main_gtx_orthonormalize();
|
|
}//namespace test
|
|
|
|
namespace gtx{
|
|
//! GLM_GTX_orthonormalize extension: Orthonormalize matrices.
|
|
namespace orthonormalize
|
|
{
|
|
//! Returns the orthonormalized matrix of m.
|
|
//! From GLM_GTX_orthonormalize extension.
|
|
template <typename T>
|
|
detail::tmat3x3<T> orthonormalize(
|
|
const detail::tmat3x3<T>& m);
|
|
|
|
//! Orthonormalizes x according y.
|
|
//! From GLM_GTX_orthonormalize extension.
|
|
template <typename T>
|
|
detail::tvec3<T> orthonormalize(
|
|
const detail::tvec3<T>& x,
|
|
const detail::tvec3<T>& y);
|
|
|
|
}//namespace orthonormalize
|
|
}//namespace gtx
|
|
}//namespace glm
|
|
|
|
#define GLM_GTX_orthonormalize namespace gtx::orthonormalize
|
|
#ifndef GLM_GTX_GLOBAL
|
|
namespace glm {using GLM_GTX_orthonormalize;}
|
|
#endif//GLM_GTX_GLOBAL
|
|
|
|
#include "orthonormalize.inl"
|
|
|
|
#endif//glm_gtx_orthonormalize
|