Function createVec2

  • Creates a new 2D vector, uninitialized.

    This function returns a new vector with two elements. If an array of values is provided, the vector is initialized with those values. Otherwise, the vector will be initialized with default values (e.g., 2).

    Parameters

    • Optionalvalues: FloatArrayParam

      Optional array of values to initialize the vector. If not provided, the vector is initialized with default values.

    Returns FloatArrayParam

    A new, uninitialized 2D vector.