screen

screen.screen.rotate_xy

Declaration
lua
screen.rotate_xy(x, y, target_orientation)
Description
Rotate coordinates from current orientation space to target orientation space.
Parameters
NameTypeRequiredDefaultDescription
xnumberRequired—X
ynumberRequired—Y
target_orientationintegerRequired—Target orientation 0-3
Return Values
TypeDescription
integerRotated X
integerRotated Y
Example
lua
local rx, ry = screen.rotate_xy(100, 200, 1)