mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-10-05 13:51:04 +00:00
Add glm 0.9.2
This commit is contained in:
parent
21545e1a24
commit
c4b531ed5e
218 changed files with 46187 additions and 0 deletions
60
ExternalLibs/glm/gtx/projection.hpp
Normal file
60
ExternalLibs/glm/gtx/projection.hpp
Normal file
|
@ -0,0 +1,60 @@
|
|||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Created : 2005-12-21
|
||||
// Updated : 2009-03-06
|
||||
// Licence : This source is under MIT License
|
||||
// File : glm/gtx/projection.hpp
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Dependency:
|
||||
// - GLM core
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef glm_gtx_projection
|
||||
#define glm_gtx_projection
|
||||
|
||||
// Dependency:
|
||||
#include "../glm.hpp"
|
||||
|
||||
#if(defined(GLM_MESSAGES) && !defined(glm_ext))
|
||||
# pragma message("GLM: GLM_GTX_projection extension included")
|
||||
#endif
|
||||
|
||||
namespace glm{
|
||||
namespace gtx{
|
||||
namespace projection ///< GLM_GTX_projection extension: Projection of a vector to other one
|
||||
{
|
||||
/// \addtogroup gtx_projection
|
||||
/// @{
|
||||
|
||||
//! Projects x on Normal.
|
||||
//! From GLM_GTX_projection extension.
|
||||
template <typename T>
|
||||
detail::tvec2<T> proj(
|
||||
detail::tvec2<T> const & x,
|
||||
detail::tvec2<T> const & Normal);
|
||||
|
||||
//! Projects x on Normal.
|
||||
//! From GLM_GTX_projection extension.
|
||||
template <typename T>
|
||||
detail::tvec3<T> proj(
|
||||
detail::tvec3<T> const & x,
|
||||
detail::tvec3<T> const & Normal);
|
||||
|
||||
//! Projects x on Normal.
|
||||
//! From GLM_GTX_projection extension.
|
||||
template <typename T>
|
||||
detail::tvec4<T> proj(
|
||||
detail::tvec4<T> const & x,
|
||||
detail::tvec4<T> const & Normal);
|
||||
|
||||
/// @}
|
||||
}//namespace projection
|
||||
}//namespace gtx
|
||||
}//namespace glm
|
||||
|
||||
#include "projection.inl"
|
||||
|
||||
namespace glm{using namespace gtx::projection;}
|
||||
|
||||
#endif//glm_gtx_projection
|
Loading…
Add table
Add a link
Reference in a new issue