MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ circular_bounds() [2/2]

std::function< bool(glm::vec3)> MayaFlux::Kinesis::circular_bounds ( glm::vec3  center,
float  radius 
)
inlinenoexcept

Containment test for a sphere.

Parameters
centerWorld-space center.
radiusRadius in world units.

Definition at line 353 of file Bounds.hpp.

354{
355 float r2 = radius * radius;
356 return [center, r2](const glm::vec3& p) {
357 glm::vec3 d = p - center;
358 return glm::dot(d, d) <= r2;
359 };
360}
float radius

References radius.