js-util

Home > rc-js-util > Range2d > ensureMinRange

Range2d.ensureMinRange() method

Bound this range to be at least as large as the argument.

Signature:

ensureMinRange(_xMinRange: number, _yMinRange: number): void;

Parameters

Parameter Type Description
_xMinRange number  
_yMinRange number  

Returns:

void

Remarks

Where this range is smaller than the bounding range, it will be resized to be the minimum. This is done by adding equally to both the min and max.