MayaFlux 0.4.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 189 of file Bounds.hpp.

190 {
191 return { .min = s.center - glm::vec3(s.radius),
192 .max = s.center + glm::vec3(s.radius) };
193 }

References min.