mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-10-06 14:22:33 +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
34
ExternalLibs/glm/gtx/handed_coordinate_space.inl
Normal file
34
ExternalLibs/glm/gtx/handed_coordinate_space.inl
Normal file
|
@ -0,0 +1,34 @@
|
|||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Created : 2005-12-21
|
||||
// Updated : 2009-02-19
|
||||
// Licence : This source is under MIT License
|
||||
// File : glm/gtx/handed_coordinate_space.inl
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
namespace glm{
|
||||
namespace gtx{
|
||||
namespace handed_coordinate_space
|
||||
{
|
||||
template <typename T>
|
||||
GLM_FUNC_QUALIFIER bool rightHanded(
|
||||
detail::tvec3<T> const & tangent,
|
||||
detail::tvec3<T> const & binormal,
|
||||
detail::tvec3<T> const & normal)
|
||||
{
|
||||
return dot(cross(normal, tangent), binormal) > T(0);
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
GLM_FUNC_QUALIFIER bool leftHanded(
|
||||
detail::tvec3<T> const & tangent,
|
||||
detail::tvec3<T> const & binormal,
|
||||
detail::tvec3<T> const & normal)
|
||||
{
|
||||
return dot(cross(normal, tangent), binormal) < T(0);
|
||||
}
|
||||
|
||||
}//namespace handed_coordinate_space
|
||||
}//namespace gtx
|
||||
}//namespace glm
|
Loading…
Add table
Add a link
Reference in a new issue