| 334 | } |
| 335 | |
| 336 | float OBB::projectPoint(const Vec3& point, const Vec3& axis) const |
| 337 | { |
| 338 | float dot = axis.dot(point); |
| 339 | float ret = dot * point.length(); |
| 340 | return ret; |
| 341 | } |
| 342 | |
| 343 | void OBB::getInterval(const OBB& box, const Vec3& axis, float& min, float& max) const |
| 344 | { |