DimensionType

Get the numeric type used to measure a vectors's coordinates.

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

Examples

static assert(is(DimensionType!vec2f == float));
static assert(is(DimensionType!vec3d == double));

Meta