aboutsummaryrefslogtreecommitdiff
path: root/src/shared/movement/struct.hh
blob: 7cfcc0fd836fcaf4427f7f41f46ad3334b2a7e55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef SHARED_MOVEMENT_STRUCT_HH_
#define SHARED_MOVEMENT_STRUCT_HH_

#include "glm/glm.hpp"

namespace shared {
namespace movement {

constexpr float EPSILON = 0.0001f; // counteract arithmetic errors
constexpr float EPSILON2 = EPSILON + 2 * EPSILON * EPSILON;

struct aabb {
    glm::vec3 min;
    glm::vec3 max;
};

} // namespace movement
} // namespace shared

#endif