vector2.of
The plane vector with the given components.
Usage
Vector2.of(x: number, y: number): Vector2Parameters
xnumberThe x coordinate. Required. In model.
ynumberThe y coordinate. Required. In model.
Returns
A new { x, y }; components are stored as given.
Example
Vector2.of(1, -1) // → { x: 1, y: -1 }