~mir-team/mir/in-process-egl+input-conglomeration

« back to all changes in this revision

Viewing changes to 3rd_party/glm/glm/gtx/mixed_product.inl

Merged trunk and fixed issues

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
///////////////////////////////////////////////////////////////////////////////////////////////////
2
 
// OpenGL Mathematics Copyright (c) 2005 - 2012 G-Truc Creation (www.g-truc.net)
3
 
///////////////////////////////////////////////////////////////////////////////////////////////////
4
 
// Created : 2007-04-03
5
 
// Updated : 2008-09-17
6
 
// Licence : This source is under MIT License
7
 
// File    : glm/gtx/mixed_product.inl
8
 
///////////////////////////////////////////////////////////////////////////////////////////////////
9
 
 
10
 
namespace glm
11
 
{
12
 
        template <typename valType> 
13
 
        GLM_FUNC_QUALIFIER valType mixedProduct
14
 
        (
15
 
                detail::tvec3<valType> const & v1, 
16
 
                detail::tvec3<valType> const & v2, 
17
 
                detail::tvec3<valType> const & v3
18
 
        )
19
 
        {
20
 
                return dot(cross(v1, v2), v3);
21
 
        }
22
 
}//namespace glm