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

Method SphereBoxIntersection

TombEngine/Renderer/RendererHelper.cpp:379–390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

377 }
378
379 bool Renderer::SphereBoxIntersection(BoundingBox box, Vector3 sphereCentre, float sphereRadius)
380 {
381 if (sphereRadius == 0.0f)
382 {
383 return box.Contains(sphereCentre);
384 }
385 else
386 {
387 BoundingSphere sphere = BoundingSphere(sphereCentre, sphereRadius);
388 return box.Intersects(sphere);
389 }
390 }
391
392 void Renderer::FlipRooms(short roomNumber1, short roomNumber2)
393 {

Callers

nothing calls this directly

Calls 1

IntersectsMethod · 0.80

Tested by

no test coverage detected