Returns the x component of the vector at the given index.
num? getX(int index) { return getAt(index * itemSize); }