Converts an array to a vector.
The array
The dimension of the vector, which can be 2, 3, or 4
Optional
The index of the array to start the vector
const result = Chalkboard.stat.toVector([3, 4, 5], 3); // Returns the vector (3, 4, 5) Copy
const result = Chalkboard.stat.toVector([3, 4, 5], 3); // Returns the vector (3, 4, 5)
Converts an array to a vector.