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

Method GetBoundingSphere

trinity/Eve/SpaceObject/EveSwarm.cpp:801–808  ·  view source on GitHub ↗

-------------------------------------------------------------------------------- Description: GetBoundingSphere. See EveSpaceObject2 --------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

799// GetBoundingSphere. See EveSpaceObject2
800// --------------------------------------------------------------------------------
801bool EveSwarm::GetBoundingSphere( Vector4& sphere, BoundingSphereQuery query ) const
802{
803 Vector4 s;
804 EveShip2::GetBoundingSphere( s, query );
805 BoundingSphereFromBox( sphere, m_squadBoundsMin, m_squadBoundsMax );
806 sphere.w += s.w;
807 return true;
808}
809
810// --------------------------------------------------------------------------------
811// Description:

Callers 1

IsCastingShadowMethod · 0.45

Calls 2

GetBoundingSphereFunction · 0.85
BoundingSphereFromBoxFunction · 0.85

Tested by

no test coverage detected