Skip to main content

vec

Callable

  • vec(x: number, y: number): Vector

  • Shorthand for creating new Vectors - returns a new Vector instance with the provided X and Y components.


    Parameters

    • x: number

      X component of the Vector

    • y: number

      Y component of the Vector

    Returns Vector