Function copy

  • Copies a vector. (same as vec2.clone) Also see vec2.create and vec2.set

    Parameters

    • v: Vec2

      The vector.

    • Optional dst: Vec2

      vector to hold result. If not passed in a new one is created.

    Returns Vec2

    A copy of v.