math docs
    Preparing search index...

    Function clone

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

      Parameters

      • a: readonly [number, number]

        vector to clone

      Returns vec2.Vec2

      a new 2D vector