| 25 | return std::clamp(a - floorf(a / length) * length, 0.0f, length); |
| 26 | } |
| 27 | float GameToolbox::SquareDistance(float xa, float ya, float xb, float yb) { |
| 28 | return ((xb - xa) * (xb - xa)) + ((yb - ya) * (yb - ya)); |
| 29 | } |
| 30 | float GameToolbox::SquareDistance(ax::Vec2 a, ax::Vec2 b) { |
| 31 | return SquareDistance(a.x, a.y, b.x, b.y); |
| 32 | } |
nothing calls this directly
no outgoing calls
no test coverage detected