Line | Branch | Exec | Source |
---|---|---|---|
1 | #include "base/numeric.h" | ||
2 | |||
3 | #include "assert/assert.h" | ||
4 | #include "base/angle.h" | ||
5 | |||
6 | #include <cmath> | ||
7 | |||
8 | |||
9 | namespace eu | ||
10 | { | ||
11 | int | ||
12 | 2 | floor_to_int(float v) | |
13 | { | ||
14 | 2 | return static_cast<int>(std::floor(v)); | |
15 | } | ||
16 | |||
17 | |||
18 | int | ||
19 | 2 | ceil_to_int(float v) | |
20 | { | ||
21 | 2 | return static_cast<int>(std::ceil(v)); | |
22 | } | ||
23 | } | ||
24 |