• Creates a new 2-element vector object initialized with the given values

    Parameters

    • x: number

      the first element

    • y: number

      the second element

    Returns Vec2

    the new 2-element vector object

Generated using TypeDoc