ReferenceScripting APIVector2constructor
Vector2.constructor
constructorA new vector.
| Name | constructor |
|---|---|
| Kind | constructor of Vector2 |
| Called as | new Vector2(…) |
| Since | 0.3 |
Syntax
new Vector2( x?: number, y?: number): Vector2Parameters
| Name | Type | Description |
|---|---|---|
x | number | Optional. Across (0 unless given) |
y | number | Optional. Down (0 unless given) |
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.