Ion
|
The RangeBase class makes it possible to treat Ranges with Dimension=1 specially. More...
#include "range.h"
Public Types | |
enum | { kDimension = Dimension } |
The dimension of the Range. More... | |
typedef Point< Dimension, T > | Endpoint |
Convenience typedef for a Range endpoint type. More... | |
typedef Vector< Dimension, T > | Size |
Convenience typedef for the size of a Range. More... | |
The RangeBase class makes it possible to treat Ranges with Dimension=1 specially.
For example, a Range<1, int> will store two ints instead of two Point<1, int> instances, which would then require callers to index (always with 0) into the points.
typedef Point<Dimension, T> ion::math::RangeBase< Dimension, T >::Endpoint |
typedef Vector<Dimension, T> ion::math::RangeBase< Dimension, T >::Size |
anonymous enum |