DirectZ
Loading...
Searching...
No Matches
dz::AABB< T, N > Struct Template Reference

Axis-Aligned Bounding Box (AABB) template structure. More...

#include <math.hpp>

Public Member Functions

 AABB ()=default
 Default constructor.
 AABB (vec< T, N > min, vec< T, N > max)
 Construct an AABB with specified minimum and maximum corners.

Public Attributes

vec< T, Nmin
vec< T, Nmax

Detailed Description

template<typename T, size_t N>
struct dz::AABB< T, N >

Axis-Aligned Bounding Box (AABB) template structure.

Represents an N-dimensional bounding box defined by minimum and maximum corner points.

Template Parameters
TThe numeric type of the bounding box coordinates (e.g., float, double).
NThe dimension of the bounding box (e.g., 2 for 2D, 3 for 3D).

Constructor & Destructor Documentation

◆ AABB() [1/2]

template<typename T, size_t N>
dz::AABB< T, N >::AABB ( )
default

Default constructor.

Leaves min and max uninitialized.

◆ AABB() [2/2]

template<typename T, size_t N>
dz::AABB< T, N >::AABB ( vec< T, N > min,
vec< T, N > max )
inline

Construct an AABB with specified minimum and maximum corners.

Parameters
minThe minimum corner vector of the bounding box.
maxThe maximum corner vector of the bounding box.

Member Data Documentation

◆ max

template<typename T, size_t N>
vec<T, N> dz::AABB< T, N >::max

Maximum corner point of the bounding box.

◆ min

template<typename T, size_t N>
vec<T, N> dz::AABB< T, N >::min

Minimum corner point of the bounding box.


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