struct XYZ
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user