| 30 | static bool isinteger(double value) { return value == floor(value); } |
| 31 | |
| 32 | ivec grid_volume::round_vec(const vec &p) const { |
| 33 | ivec result(dim); |
| 34 | LOOP_OVER_DIRECTIONS(dim, d) { result.set_direction(d, my_round(p.in_direction(d) * 2 * a)); } |
| 35 | return result; |
| 36 | } |
| 37 | |
| 38 | void grid_volume::set_origin(const ivec &o) { |
| 39 | io = o; |
no outgoing calls
no test coverage detected