Adjusts either the start or end position of a range so that its contained
within another range. Unlike constrain, this will not attempt to retain
the range's length.
If other does not intersect with to, then the range cannot be truncated
and undefined is returned.
Adjusts either the start or end position of a range so that its contained within another range. Unlike
constrain, this will not attempt to retain the range's length.If
otherdoes not intersect withto, then the range cannot be truncated andundefinedis returned.