ReferenceScripting APIVector2scale
Vector2.scale
methodThis times a number.
| Name | scale |
|---|---|
| Kind | method of Vector2 |
| Called as | vector2.scale(…) |
| Since | 0.3 |
Syntax
scale(k: number): Vector2Parameters
| Name | Type | Description |
|---|---|---|
k | number | The number |
Returns
Vector2: the vector.
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.