| 10 | {} |
| 11 | |
| 12 | float SpaceCalculator::distance(RealVector2D const& a, RealVector2D const& b) const |
| 13 | { |
| 14 | auto d = b - a; |
| 15 | correctDisplacement(d); |
| 16 | return toFloat(Math::length(d)); |
| 17 | } |
| 18 | |
| 19 | void SpaceCalculator::correctDisplacement(RealVector2D& displacement) const |
| 20 | { |