inBound

fun inBound(offset: Float, bound: Pair<Float, Float>): Boolean

判断位移是否在边界内