Skip to content

Function: rotateScreenPoint() ​

ts
function rotateScreenPoint(x, y, deg): ScreenPoint2D;

Experimental

Rotate a screen vector clockwise by deg (screen y points down).

Parameters ​

ParameterType
xnumber
ynumber
degnumber

Returns ​

ScreenPoint2D

Released under the MIT License.