allegro_flare
allegro_flare copied to clipboard
Create a Math class
However, a lot of geometry can go into vec2d and might not leave much left for a Math class.
Maybe useful constants and general stuff like clamp and whatnot?
Exactly. Right now there are a bunch of things stuffed in useful.h/useful.cpp that should belong in a Math class.
There are a few constants already like
TAUFULL_ROTATION
And a few functions like
degrees_to_radians(deg)radians_to_degrees(rad)limit<T>(min, max, val)in_range<T>(min, max, val)
Eventually, I'll need to assemble a comprehensive list practical for games.
Pushing this to 0.9