MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / SphereInFrustum

Method SphereInFrustum

TombEngine/Renderer/Frustum.cpp:83–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81 }
82
83 bool Frustum::SphereInFrustum(const Vector3& position, float radius) const
84 {
85 for (unsigned int i = 0; i < 6; i++)
86 {
87 if (frustum[i][0] * position.x + frustum[i][1] * position.y + frustum[i][2] * position.z + frustum[i][3] <= -radius)
88 return false;
89 }
90
91 return true;
92 }
93
94 bool Frustum::AABBInFrustum(const Vector3& min, const Vector3& max) const
95 {

Callers 5

CollectRoomsMethod · 0.80
CollectItemsMethod · 0.80
CollectStaticsMethod · 0.80
CollectDecalsForRoomMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected