Advertisement

Iterate through the boundaries of an rotated rectangle?

Started by July 29, 2015 09:28 AM
0 comments, last by swiftcoder 9 years, 6 months ago

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]

This topic is closed to new replies.

Advertisement