intVector2Mapper

fun intVector2Mapper(v: IntVector2, dimension: Int): Double(source)

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).