VectorAngle: Difference between revisions

From Eternity Wiki
Jump to navigationJump to search
(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...")
 
(No difference)

Latest revision as of 10:45, 23 February 2019

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]