VectorAngle

From Eternity Wiki
Jump to navigationJump to search

fixed VectorAngle(fixed dx, fixed dy)

Returns the direction angle of the vector with directions (dx, dy), expressed in fixed point (0 is east, 0.25 or 16384 is north, 0.5 or 32768 is west etc.). To get the byte angle (0-255), divide the result by 256.

See also[edit]