ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:rotatepoint

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

functions/rotatepoint.txt · Last modified: 2017/04/15 17:41 by korshun