template<typename T>
struct WorldStone::AABB< T >
Axis-Aligned Bounding Box.
- Template Parameters
-
T | The type to use for the positions |
- Note
- The members were named lower/upper in opposition to min/max so that we can use the same code for both integers and float. For integers width = xMax - xMin + 1 as 'max' means included while for floats width = xMax - xMin. (This is basicly the difference between counting pixels and the distance between the pixels) As Upper means the bound is excluded, the data (and user) is responsible for handling this difference, not the class. An alternative would have been to store the width/height instead.
Definition at line 17 of file AABB.h.