struct XYZ

This commit is contained in:
2021-01-12 16:21:29 -05:00
parent 6bf1476e5e
commit d7d633bd96

View File

@@ -44,7 +44,11 @@ uint32_t hash3(uint32_t a, uint32_t b, uint32_t c);
// Returns a floating point value between lo and hi inclusive.
double hash_to_float(double lo, double hi, uint32_t a, uint32_t b, uint32_t c);
using XYZ = std::tuple<float, float, float>;
struct XYZ {
float x, y, z;
XYZ() { x=0; y=0; z=0; }
XYZ(float ix, float iy, float iz) { x=ix; y=iy; z=iz; }
};
} // namespace util
#endif // UTIL_HPP