UNPKG

rc-js-util

Version:

A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.

70 lines (33 loc) 951 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [rc-js-util](./rc-js-util.md) &gt; [Range2d](./rc-js-util.range2d.md) &gt; [ensureMinRange](./rc-js-util.range2d.ensureminrange.md) ## Range2d.ensureMinRange() method Bound this range to be at least as large as the argument. **Signature:** ```typescript ensureMinRange(_xMinRange: number, _yMinRange: number): void; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> \_xMinRange </td><td> number </td><td> </td></tr> <tr><td> \_yMinRange </td><td> number </td><td> </td></tr> </tbody></table> **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.