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

◆ from_sphere()

static AABB3D MayaFlux::Kinesis::AABB3D::from_sphere ( const BoundingSphere &  s)
inlinestaticnoexcept

Construct the tightest AABB enclosing a BoundingSphere.

Parameters
sSource sphere.

Definition at line 234 of file Bounds.hpp.

235 {
236 return { .min = s.center - glm::vec3(s.radius),
237 .max = s.center + glm::vec3(s.radius) };
238 }

References min.