| 39 | } |
| 40 | |
| 41 | void SpaceCalculator::correctPosition(RealVector2D& pos) const |
| 42 | { |
| 43 | auto intPart = toIntVector2D(pos); |
| 44 | auto fracPart = RealVector2D{pos.x - toFloat(intPart.x), pos.y - toFloat(intPart.y)}; |
| 45 | correctIntPosition(intPart, _worldSize); |
| 46 | pos = {static_cast<float>(intPart.x) + fracPart.x, static_cast<float>(intPart.y) + fracPart.y}; |
| 47 | } |
| 48 | |
| 49 | RealVector2D SpaceCalculator::getCorrectedPosition(RealVector2D const& pos) const |
| 50 | { |
nothing calls this directly
no test coverage detected