1/// @ref gtx_handed_coordinate_space 2/// @file glm/gtx/handed_coordinate_space.inl 3 4namespace glm 5{ 6 template <typename T, precision P> 7 GLM_FUNC_QUALIFIER bool rightHanded 8 ( 9 tvec3<T, P> const & tangent, 10 tvec3<T, P> const & binormal, 11 tvec3<T, P> const & normal 12 ) 13 { 14 return dot(cross(normal, tangent), binormal) > T(0); 15 } 16 17 template <typename T, precision P> 18 GLM_FUNC_QUALIFIER bool leftHanded 19 ( 20 tvec3<T, P> const & tangent, 21 tvec3<T, P> const & binormal, 22 tvec3<T, P> const & normal 23 ) 24 { 25 return dot(cross(normal, tangent), binormal) < T(0); 26 } 27}//namespace glm 28