js-util

Home > rc-js-util > Range1d > bound1d

Range1d.bound1d() method

Bound this range to the argument.

Signature:

bound1d(_boundTo: Range1d<TTypedArray>): void;

Parameters

Parameter Type Description
_boundTo Range1d<TTypedArray>  

Returns:

void

Remarks

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.