Home > rc-js-util > Range1d > bound1d
Bound this range to the argument.
Signature:
bound1d(_boundTo: Range1d<TTypedArray>): void;
Parameter | Type | Description |
---|---|---|
_boundTo | Range1d<TTypedArray> |
Returns:
void
Where this range is larger than the bounding range, it will be resized to fit. Where this range is smaller than the bounding range but not contained, it will be moved maintaining its size. It Will be moved such that the the side furthest from the bounding range will be at the edge of the boundary.