inBound

fun inBound(offset: Float, bound: Float): Boolean

判断位移是否在边界内