How to convert fixed point angle to degrees?
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
How to convert fixed point angle to degrees?
I have a fixed point angle which I'd like to convert to degrees (0 to 360), how do I do this?
Re: How to convert fixed point angle to degrees?
Fixed point are on a scale from 0 to 65536.
Degrees are on a scale from 0 to 360
Therefore:
(X * 360) / 65536
Degrees are on a scale from 0 to 360
Therefore:
(X * 360) / 65536
Re: How to convert fixed point angle to degrees?
Thanks Gez.