DimensionType

Get the numeric type used to measure a box's dimensions.

alias DimensionType(T : Box!U, U...) = U[0]

Examples

static assert(is(DimensionType!box2f == float));
static assert(is(DimensionType!box3d == double));

Meta