I am developing a game where a rectangles position is the top-left corner where x is increasing rightwards and y downwards.
What I am trying to achieve is to iterate through the boundaries of an rotated rectangle. Did some googling with no luck.
I am developing a game where a rectangles position is the top-left corner where x is increasing rightwards and y downwards.
What I am trying to achieve is to iterate through the boundaries of an rotated rectangle. Did some googling with no luck.
How are you representing the rectangles in code? How are you rotating them?
Tristam MacDonald. Ex-BigTech Software Engineer. Future farmer. [https://trist.am]