VG3_get_xy_direction_from_angle()
Return x-/y-directions of a given angle.SYNTAX
int
VG3_get_xy_direction_from_angle(int angle,
int *xdelta,
int *ydelta)
FUNCTION PARAMETERS
angle | Angle in degrees |
xdelta | For returning x-direction in 1/100 pixels |
ydelta | For returning y-direction in 1/100 pixels |
RETURN VALUE
Returns the same angle, but corrected from 0 to 359.
DESCRIPTION
Return x-/y-directions (based on 1 pixel) of a given angle.
E.g. for an angle = 45 degrees,
it sets x-direction = 71 and y-direction = -71,
which means 0.71 pixels in x-direction an -0.71 pixels in y-direction.
SEE ALSO