Function createVec3

  • Creates a new 3D vector, uninitialized.

    Similar to createVec2, this function creates a new vector with three elements. If no values are provided, the vector is initialized with default values (e.g., 3).

    Parameters

    • Optionalvalues: FloatArrayParam

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

    Returns Float64Array<any>

    A new, uninitialized 3D vector.