MCPcopy Create free account
hub / github.com/carbonengine/trinity / BoundingSphereIsInside

Function BoundingSphereIsInside

trinity/Utilities/BoundingSphere.cpp:14–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12}
13
14bool 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
22bool BoundingSphereIsSphereInside( const Vector4& parentSphere, const Vector4& testSphere )
23{

Callers 2

BoundingSphereUpdateFunction · 0.85
UpdateVisibilityMethod · 0.85

Calls 1

LengthSqFunction · 0.85

Tested by

no test coverage detected