checkBounds

inline fun checkBounds(    value: Boolean,     index: Int,     axis: Int,     size: Int)