vector_rotate
vector_rotate(v, angle, [radians]) -> VECTOR (dict x,y)
Rotate a vector by an angle
Syntaxe
var v2 = vector_rotate(v, 90, false);
Arguments
| Name | Required | Default | Description |
|---|---|---|---|
v | yes | - | Vector to rotate |
angle | yes | - | Rotation angle |
radians | - | - | Angle in radians (if true) or degrees (if false) |