intVector2Mapper
Maps the specified dimension of an IntVector2 to a Double.
Return
the x or y component of the vector as a Double, depending on the specified dimension.
Parameters
v
the IntVector2 instance containing integer components x and y.
dimension
the dimension to map (0 for x, any other value for y).