0.9.9 API documenation
Main Page
Modules
Files
File List
G:
Source
G-Truc
glm
glm
detail
compute_vector_relational.hpp
1
#pragma once
2
3
#include "
setup.hpp
"
4
#include <cstring>
5
#include <limits>
6
7
namespace
glm
{
8
namespace
detail
9
{
10
template <typename T, bool isFloat = std::numeric_limits<T>::is_iec559>
11
struct
compute_equal
12
{
13
GLM_FUNC_QUALIFIER
static
bool
call(T a, T b)
14
{
15
return
a == b;
16
}
17
};
18
19
template
<
typename
T>
20
struct
compute_equal<T, true>
21
{
22
GLM_FUNC_QUALIFIER
static
bool
call(T a, T b)
23
{
24
return
std::memcmp(&a, &b,
sizeof
(T)) == 0;
25
}
26
};
27
}
//namespace detail
28
}
//namespace glm
glm
Definition:
common.hpp:20
setup.hpp
Core features
Generated by
1.8.10