vector_magnitude
vector_magnitude(v, magnitude) -> VECTOR (dict x,y)
Set the magnitude (length) of a vector
Syntaxe
var v2 = vector_magnitude(v, 10);
Arguments
| Name | Required | Default | Description |
|---|---|---|---|
v | yes | - | Vector |
magnitude | yes | - | New magnitude |
vector_magnitude(v, magnitude) -> VECTOR (dict x,y)
Set the magnitude (length) of a vector
var v2 = vector_magnitude(v, 10);
| Name | Required | Default | Description |
|---|---|---|---|
v | yes | - | Vector |
magnitude | yes | - | New magnitude |