Geometery/Trig Help!

BlitzMax Forums/BlitzMax Programming/Geometery/Trig Help!

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

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?