T is the Type of Vec3
T X;
T Y;
T Z;
These are provided for convenience:
T R;
T G;
T B;
using Vec3F = Vec3<float>;
using Vec3I = Vec3<int>;
using Vec3U = Vec3<unsigned>;
// = Vec3 | |
// T is the Type of the Vec3 | |
template<typename T> | |
struct Vec3 | |
{ | |
//~ == Member accessors | |
union | |
{ | |
struct | |
{ | |
T X; | |
T Y; | |
T Z; | |
}; | |
// These are provided for convenience: | |
struct | |
{ | |
T R; | |
T G; | |
T B; | |
}; | |
}; | |
//~! | |
}; | |
//~ == Typedefs | |
using Vec3F = Vec3<float>; | |
using Vec3I = Vec3<int>; | |
using Vec3U = Vec3<unsigned>; | |
//~! |