|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
Spherical fast-reject hint in world space. More...
#include <Bounds.hpp>
Collaboration diagram for MayaFlux::Kinesis::BoundingSphere:Public Member Functions | |
| bool | contains (const glm::vec3 &p) const noexcept |
| bool | overlaps_ray (const Ray &ray) const noexcept |
| Returns true if the ray passes through or originates inside the sphere. | |
Public Attributes | |
| glm::vec3 | center |
| float | radius |
Spherical fast-reject hint in world space.
Used as the cheap pre-filter for 3D spatial predicates, analogous to AABB2D in the 2D path. A sphere is a better pre-filter than an axis-aligned box in 3D: rotation-invariant, one dot product to test a point, one discriminant to test a ray.
Definition at line 105 of file Bounds.hpp.