master
ブランチ master
VulkanExample / dep / include / glm / gtx / mixed_product.inl
268 B、15行 生 Blame 履歴
1/// @ref gtx_mixed_product
2
3namespace glm
4{
5 template<typename T, qualifier Q>
6 GLM_FUNC_QUALIFIER T mixedProduct
7 (
8 vec<3, T, Q> const& v1,
9 vec<3, T, Q> const& v2,
10 vec<3, T, Q> const& v3
11 )
12 {
13 return dot(cross(v1, v2), v3);
14 }
15}//namespace glm