coord: add more named element accessors

This commit is contained in:
Danny Robson 2014-12-16 15:28:02 +11:00
parent 49a467aae8
commit af3adb9ff1

View File

@ -80,7 +80,7 @@ namespace util {
T y;
};
struct {
T r;
T s;
T t;
};
};
@ -98,6 +98,11 @@ namespace util {
T y;
T z;
};
struct {
T r;
T g;
T b;
};
};
coord () { ; }
@ -129,6 +134,12 @@ namespace util {
T z;
T w;
};
struct {
T r;
T g;
T b;
T a;
};
};
coord () { ; }