| 47 | } |
| 48 | |
| 49 | void GetSphereExtensions(dGeomID sphere, const dReal* axis, const dReal* pos, float center_prg, dReal* lo_ext, dReal* hi_ext) |
| 50 | { |
| 51 | R_ASSERT2(dGeomGetClass(sphere) == dSphereClass, "is not a sphere"); |
| 52 | dReal radius = dGeomSphereGetRadius(sphere); |
| 53 | dReal dif = dDOT(pos, axis) - center_prg; |
| 54 | *lo_ext = -radius + dif; |
| 55 | *hi_ext = radius + dif; |
| 56 | } |
| 57 | |
| 58 | void TransformedGeometryExtensionLocalParams(dGeomID geom_transform, const dReal* axis, float center_prg, dReal* local_axis, dReal& local_center_prg) |
| 59 | { |
no test coverage detected