select

fun select(x: Int, y: Int, z: Int): Int
fun select(x: Double, y: Double, z: Double): Double

Selects the appropriate x, y, or z coordinate, depending on what the axis is, and returns it.

Return

the chosen coordinate

Parameters

x

the X coordinate

y

the Y coordinate

z

the Z coordinate