Returns a new Range with the start and end points at the given position.
Returns a new Range with the given start and end points.
Returns the length of a range.
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.
Returns a new Range with the given start point and length.
Returns a range with the start and end points shifted by the given distance.