Finished OpenGL rewrite§
This commit is contained in:
parent
86468a9ce4
commit
f634d70a2f
448 changed files with 111254 additions and 127 deletions
26
vendor/include/glm/gtx/handed_coordinate_space.inl
vendored
Normal file
26
vendor/include/glm/gtx/handed_coordinate_space.inl
vendored
Normal file
|
@ -0,0 +1,26 @@
|
|||
/// @ref gtx_handed_coordinate_space
|
||||
|
||||
namespace glm
|
||||
{
|
||||
template<typename T, qualifier Q>
|
||||
GLM_FUNC_QUALIFIER bool rightHanded
|
||||
(
|
||||
vec<3, T, Q> const& tangent,
|
||||
vec<3, T, Q> const& binormal,
|
||||
vec<3, T, Q> const& normal
|
||||
)
|
||||
{
|
||||
return dot(cross(normal, tangent), binormal) > T(0);
|
||||
}
|
||||
|
||||
template<typename T, qualifier Q>
|
||||
GLM_FUNC_QUALIFIER bool leftHanded
|
||||
(
|
||||
vec<3, T, Q> const& tangent,
|
||||
vec<3, T, Q> const& binormal,
|
||||
vec<3, T, Q> const& normal
|
||||
)
|
||||
{
|
||||
return dot(cross(normal, tangent), binormal) < T(0);
|
||||
}
|
||||
}//namespace glm
|
Loading…
Add table
Add a link
Reference in a new issue