| 228 | } |
| 229 | |
| 230 | static void _normalize(float &x, float &y) |
| 231 | { |
| 232 | const float d = sqrt(x*x + y*y); |
| 233 | if (d <= 0.000001) |
| 234 | return; |
| 235 | x/=d; |
| 236 | y/=d; |
| 237 | } |
| 238 | |
| 239 | // angle measured in chord length |
| 240 | static bool _in_front(float vx, float vy, float dx, float dy, float angle) |
no test coverage detected