Cheers,
I like strict typing in C. Therefore, I don't want to store a 2D vector of floats if I specifically need integers. Is there an Apple-provided equivalent of CGPoint
which stores data as integers?
I've implemented my type Vector2i
and its companion function Vector2iMake()
à la CGPoint, but something deep in me screams that Apple was there already.
Updating to explain.
I need a datatype that will store coordinates in a board game. These are most definitely integers. Same would be if I were to implement a tile-based turn based strategy, or a tile-based RPG.