VgaGames 3 - Miscellaneous man-pages

[.. upper level ..]

VG3_get_angle_from_xy_direction()

Return angle according to given x-/y-directions.
SYNTAX
int VG3_get_angle_from_xy_direction(int xdelta, int ydelta)

FUNCTION PARAMETERS
xdelta X-direction in 1/100 pixels
ydelta Y-direction in 1/100 pixels

RETURN VALUE
Returns angle from 0 to 359.

DESCRIPTION
Return angle according to given x-/y-directions. E.g. for x-direction = 71 and y-direction = -71, angle = 45 will be returned, also for x-direction = 290 and y-direction = -290, angle = 45 will be returned.

SEE ALSO
VG3_get_xy_direction_from_angle()