MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
MayaFlux::Kinesis::AABB3D Struct Reference

Axis-aligned bounding box in 3D world space. More...

#include <Bounds.hpp>

+ Collaboration diagram for MayaFlux::Kinesis::AABB3D:

Public Member Functions

glm::vec3 center () const noexcept
 
bool contains (const glm::vec3 &p) const noexcept
 
AABB3D expanded (float margin) const noexcept
 
glm::vec3 extent () const noexcept
 
glm::vec3 half_extent () const noexcept
 
bool overlaps (const AABB3D &other) const noexcept
 
AABB3D translated (const glm::vec3 &offset) const noexcept
 

Static Public Member Functions

static AABB3D from_center (const glm::vec3 &c, const glm::vec3 &half) noexcept
 Construct from a center point and half-extents.
 
static AABB3D from_sphere (const BoundingSphere &s) noexcept
 Construct the tightest AABB enclosing a BoundingSphere.
 

Public Attributes

glm::vec3 max
 
glm::vec3 min
 

Detailed Description

Axis-aligned bounding box in 3D world space.

Counterpart to AABB2D for three-dimensional geometry. Used by Kinesis::aabb() to describe the extent of any PositionCarrying span, and as a fast-reject pre-filter in 3D spatial predicates.

No coordinate convention is enforced; the box is whatever the caller's position data implies (world space, object space, NDC-extended, etc.).

Definition at line 143 of file Bounds.hpp.


The documentation for this struct was generated from the following file: