leftiness / hex_math

MIT License
4 stars 1 forks source link

Make a CubePoint instead of Point::s() #74

Closed leftiness closed 7 years ago

leftiness commented 7 years ago

CubePoint can have generic coordinate types so he can also replace FloatPoint::s(). Then I'll do something like this:

let CubePoint(q, r, s, t) = my_point.into();

Instead of this:

let FloatPoint(q, r, t) = my_float;
let s = my_float.s();