isSameAxis

fun isSameAxis(other: WorldPosition, allowedAxis: Set<Pair<Int, Int>>): Boolean