| 12 | } |
| 13 | |
| 14 | bool BoundingSphereIsInside( const Vector4& sphere, const Vector3& pos ) |
| 15 | { |
| 16 | const float radiusEpsilon = 1e-4f; |
| 17 | |
| 18 | Vector3 delta = pos - (const Vector3&)sphere; |
| 19 | return ( LengthSq( delta ) <= sphere.w * sphere.w + radiusEpsilon ); |
| 20 | } |
| 21 | |
| 22 | bool BoundingSphereIsSphereInside( const Vector4& parentSphere, const Vector4& testSphere ) |
| 23 | { |
no test coverage detected