Function clone

  • Creates a new vec2 initialized with values from an existing vector

    Parameters

    • a: Vec2

      vector to clone

    Returns Vec2

    a new 2D vector