| 270 | } |
| 271 | |
| 272 | static void projectPoly(const float* axis, const float* poly, const int npoly, |
| 273 | float& rmin, float& rmax) |
| 274 | { |
| 275 | rmin = rmax = dtVdot2D(axis, &poly[0]); |
| 276 | for (int i = 1; i < npoly; ++i) |
| 277 | { |
| 278 | const float d = dtVdot2D(axis, &poly[i*3]); |
| 279 | rmin = dtMin(rmin, d); |
| 280 | rmax = dtMax(rmax, d); |
| 281 | } |
| 282 | } |
| 283 | |
| 284 | inline bool overlapRange(const float amin, const float amax, |
| 285 | const float bmin, const float bmax, |
no test coverage detected