limitToBound

fun limitToBound(offset: Float, bound: Float): Float

把位移限制在边界内