====== RotatePoint ====== {{tag>math vectors needs_examples}} ''fixed, fixed RotatePoint(fixed x, fixed y, fixed originX, fixed originY, angle angle)'' [[:types|angle - a fixed-point]] [[zdoom>Definitions#Fixed_point_angles|ZDoom angle]] [[:types|(not degrees or radians)]] [[:Multiple_return_values|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]]