MDL SDK API nvidia_logo_transpbg.gif Up
mi::math::Bbox_struct<T, DIM> Struct Template Reference

Storage class for an axis-aligned N-dimensional bounding box class template of fixed dimension. More...

#include <bbox.h>

Public Attributes

Vector_struct<T, DIM> min
 Elementwise minimal bounding box corner. More...
 
Vector_struct<T, DIM> max
 Elementwise maximal bounding box corner. More...
 

Detailed Description

template<typename T, Size DIM>
struct mi::math::Bbox_struct<T, DIM>

Storage class for an axis-aligned N-dimensional bounding box class template of fixed dimension.

Use the mi::math::Bbox template in your programs and this storage class only if you need a POD type, for example for parameter passing.

A bounding box is represented by two mi::math::Vector_struct vectors representing the elementwise minimal box corner, min, and the elementwise largest box corner, max.