coord: give names for 4 valued coord parts

This commit is contained in:
Danny Robson 2014-08-18 22:08:32 +10:00
parent 26ee9b608b
commit d845cc6c39

View File

@ -97,6 +97,25 @@ namespace util {
coord_data (T... t): data{t...}
{ ; }
};
template <>
struct coord_data<4> {
union {
double data[4];
struct {
double x;
double y;
double z;
double w;
};
};
coord_data () { ; }
template <typename... T>
coord_data (T... t): data{t...}
{ ; }
};
#pragma GCC diagnostic pop
}
}