- A vector of arbitrary size, which is returned by
Vmath.vector()
.
Array access is possible, but note that the indices given are actually incremented
by 1
in the abstract. This is because Lua indexes from 1
, but on the Haxe
side we want to index from 0
.
var vec: Vector = Vmath.vector([ 1, 2, 3 ]);
var firstElement: Float = vec[0]; // in Lua this would be vec[1]