vector2Mapper
Maps a 2D vector's dimension to its corresponding value.
Return
The value of the specified dimension of the vector.
Parameters
v
The 2D vector whose dimension is to be mapped.
dimension
The dimension index to map (0 for x, any other value for y).