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