I'm at the beginning stages of building my first 2D game engine, and I'm not sure if I should setup my base 2D vector class as a
vec3(x, y, z) or a
I might want to use a
vec3(x, y, z) for adding z values, for ordering which objects would overlap other objects and still be visible. I'm also not sure if it's just easier to have a
vec3 for working with the transformation matrices and graphics libraries like OpenGL. This is my first game engine project, and I don't really know what is required for the long haul, in a 2D game.
How should I setup a vector class for a 2D game engine?