VectorAngle

From Eternity Wiki
Revision as of 10:45, 23 February 2019 by Printz (talk | contribs) (Created page with "''fixed'' '''VectorAngle'''(''fixed'' ''dx'', ''fixed'' ''dy'') Returns the direction angle of the vector with directions (''dx'', ''dy''), expressed in ''fixed point'' (0 is...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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]