Is there a way to calculate a point on the perimeter of a square/rect based on a given angle?
I can do it with a circle:
pointX = cos( angle )
pointY = sin( angle )
But I can't find a way to do the same thing for a square/rect.
Any ideas?
I can do it with a circle:
pointX = cos( angle )
pointY = sin( angle )
But I can't find a way to do the same thing for a square/rect.
Any ideas?