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