Sets the component at index (0 = x, 1 = y) to value.
0
1
A reference to this vector.
if index is out of range.