Function fromValues

  • Creates a new vec2 initialized with the given values

    Parameters

    • x: number

      X component

    • y: number

      Y component

    Returns Vec2

    a new 2D vector