Function copy

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

    Parameters

    • v: Vec4

      The vector.

    • Optional dst: Vec4

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

    Returns Vec4

    A copy of v.