Function newVec2

  • Create a new vector

    Parameters

    • x: number

      The x value of the new vector

    • y: number

      The y value of the new vector

    Returns Vector2

    The newly created vector