| 20 | } |
| 21 | |
| 22 | bool BoundingSphereIsSphereInside( const Vector4& parentSphere, const Vector4& testSphere ) |
| 23 | { |
| 24 | // pre-chck radiuses |
| 25 | if( parentSphere.w < testSphere.w ) |
| 26 | { |
| 27 | return false; |
| 28 | } |
| 29 | Vector3 delta = (const Vector3&)testSphere - (const Vector3&)parentSphere; |
| 30 | return ( LengthSq( delta ) <= ( parentSphere.w - testSphere.w ) * ( parentSphere.w - testSphere.w ) ); |
| 31 | } |
| 32 | |
| 33 | void BoundingSphereUpdate( const Vector3& pos, Vector4& sphere ) |
| 34 | { |
no test coverage detected