angle maths

BlitzMax Forums/BlitzMax Programming/angle maths

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.

Can anyone tell me how you would go about solving for an angle and a distance given an x and y offset?

I know how to do the opposite (solving for an x and y offset given an angle and a distance):

xoffset=distance*Sin(angle)
yoffset=-distance*Cos(angle)


..but I cant remember how to do the reverse.