Clutter Engine
0.0.1
Loading...
Searching...
No Matches
ClutterEngineOpenGL
ClutterEngine
Libraries
include
glm
gtx
exterior_product.inl
1
2
3
#include <limits>
4
5
namespace
glm
{
6
namespace
detail
7
{
8
template
<
typename
T, qualifier Q,
bool
Aligned>
9
struct
compute_cross_vec2
10
{
11
GLM_FUNC_QUALIFIER
static
T call(
vec<2, T, Q>
const
& v,
vec<2, T, Q>
const
& u)
12
{
13
GLM_STATIC_ASSERT(std::numeric_limits<T>::is_iec559,
"'cross' accepts only floating-point inputs"
);
14
15
return
v.x * u.y - u.x * v.y;
16
}
17
};
18
}
//namespace detail
19
20
template
<
typename
T, qualifier Q>
21
GLM_FUNC_QUALIFIER T
cross
(
vec<2, T, Q>
const
& x,
vec<2, T, Q>
const
& y)
22
{
23
return
detail::compute_cross_vec2<T, Q, detail::is_aligned<Q>::value
>::call(x, y);
24
}
25
}
//namespace glm
26
glm::cross
GLM_FUNC_QUALIFIER vec< 3, T, Q > cross(vec< 3, T, Q > const &x, vec< 3, T, Q > const &y)
Definition
func_geometric.inl:175
detail
detail namespace with internal helper functions
Definition
json.h:249
glm
Core features
Definition
common.hpp:21
glm::detail::compute_cross_vec2
Definition
exterior_product.inl:10
glm::vec
Definition
qualifier.hpp:35
Generated by
1.12.0