| 52 | } |
| 53 | |
| 54 | void Math::normalize(RealVector2D& v) |
| 55 | { |
| 56 | float l = length(v); |
| 57 | if (l > 0.0001f) { |
| 58 | v = {v.x / l, v.y / l}; |
| 59 | } else { |
| 60 | v = {1.0f, 0.0f}; |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | float Math::subtractAngle(float angleMinuend, float angleSubtrahend) |
| 65 | { |
nothing calls this directly
no outgoing calls
no test coverage detected