Table of Contents

RotatePoint

fixed, fixed RotatePoint(fixed x, fixed y, fixed originX, fixed originY, angle angle)

angle - a fixed-point ZDoom angle (not degrees or radians)

This function returns multiple values.

Description

Returns the 2D point rotated around the origin by angle.

Examples

RotatePoint(x, y, originX, originY, angle);
int newX = r1;
int newY = r2;

See also

RotateVector