mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-08-08 23:30:06 +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
40
ExternalLibs/glm/gtx/perpendicular.inl
Normal file
40
ExternalLibs/glm/gtx/perpendicular.inl
Normal file
|
@ -0,0 +1,40 @@
|
|||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// 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/perpendicular.inl
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
namespace glm{
|
||||
namespace gtx{
|
||||
namespace perpendicular{
|
||||
|
||||
template <typename T>
|
||||
GLM_FUNC_QUALIFIER detail::tvec2<T> perp(
|
||||
detail::tvec2<T> const & x,
|
||||
detail::tvec2<T> const & Normal)
|
||||
{
|
||||
return x - projection::proj(x, Normal);
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
GLM_FUNC_QUALIFIER detail::tvec3<T> perp(
|
||||
detail::tvec3<T> const & x,
|
||||
detail::tvec3<T> const & Normal)
|
||||
{
|
||||
return x - projection::proj(x, Normal);
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
GLM_FUNC_QUALIFIER detail::tvec4<T> perp(
|
||||
detail::tvec4<T> const & x,
|
||||
detail::tvec4<T> const & Normal)
|
||||
{
|
||||
return x - projection::proj(x, Normal);
|
||||
}
|
||||
|
||||
}//namespace perpendicular
|
||||
}//namespace gtx
|
||||
}//namespace glm
|
Loading…
Add table
Add a link
Reference in a new issue