darts/box.h file

Contains the implementation of a generic, N-dimensional axis-aligned Box class.

Classes

template<int N, typename T>
struct Box
An N-D axis-aligned bounding box consisting of two N-D points min and max.

Typedefs

template<typename T>
using Box2 = Box<2, T>
2D axis-aligned box
template<typename T>
using Box3 = Box<3, T>
3D axis-aligned box
template<typename T>
using Box4 = Box<4, T>
4D axis-aligned box
using Box2f = Box2<float>
2D axis-aligned box (of floats)
using Box2d = Box2<double>
2D axis-aligned box (of doubles)
using Box2i = Box2<int32_t>
2D axis-aligned box (of signed 32-bit integers)
using Box2u = Box2<uint32_t>
2D axis-aligned box (of unsigned 32-bit integers
using Box2c = Box2<uint8_t>
2D axis-aligned box (of unsigned 8-bit integers
using Box3f = Box3<float>
3D axis-aligned box (of floats)
using Box3d = Box3<double>
3D axis-aligned box (of doubles)
using Box3i = Box3<int32_t>
3D axis-aligned box (of signed 32-bit integers)
using Box3u = Box3<uint32_t>
3D axis-aligned box (of unsigned 32-bit integers
using Box3c = Box3<uint8_t>
3D axis-aligned box (of unsigned 8-bit integers
using Box4f = Box4<float>
4D axis-aligned box (of floats)
using Box4d = Box4<double>
4D axis-aligned box (of doubles)
using Box4i = Box4<int32_t>
4D axis-aligned box (of signed 32-bit integers)
using Box4u = Box4<uint32_t>
4D axis-aligned box (of unsigned 32-bit integers
using Box4c = Box4<uint8_t>
4D axis-aligned box (of unsigned 8-bit integers