You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and dots ('.'), can be up to 35 characters long. Letters must be lowercase.
27 lines
585 B
27 lines
585 B
/// @ref gtx_handed_coordinate_space |
|
/// @file glm/gtx/handed_coordinate_space.inl |
|
|
|
namespace glm |
|
{ |
|
template<typename T, precision P> |
|
GLM_FUNC_QUALIFIER bool rightHanded |
|
( |
|
vec<3, T, P> const & tangent, |
|
vec<3, T, P> const & binormal, |
|
vec<3, T, P> const & normal |
|
) |
|
{ |
|
return dot(cross(normal, tangent), binormal) > T(0); |
|
} |
|
|
|
template<typename T, precision P> |
|
GLM_FUNC_QUALIFIER bool leftHanded |
|
( |
|
vec<3, T, P> const & tangent, |
|
vec<3, T, P> const & binormal, |
|
vec<3, T, P> const & normal |
|
) |
|
{ |
|
return dot(cross(normal, tangent), binormal) < T(0); |
|
} |
|
}//namespace glm
|
|
|