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.

154 lines (69 loc) 1.52 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [rc-js-util](./rc-js-util.md) &gt; [\_Math](./rc-js-util._math.md) ## \_Math class Utilities relating to math. **Signature:** ```typescript export declare class _Math ``` ## Properties <table><thead><tr><th> Property </th><th> Modifiers </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> [bound](./rc-js-util._math.bound.md) </td><td> `static` `readonly` </td><td> typeof mathBound </td><td> Bound a value in to a range. </td></tr> <tr><td> [boundRandom](./rc-js-util._math.boundrandom.md) </td><td> `static` `readonly` </td><td> typeof mathBoundRandom </td><td> Create a random value between min and max. </td></tr> <tr><td> [hypot2](./rc-js-util._math.hypot2.md) </td><td> `static` `readonly` </td><td> typeof mathHypot2 </td><td> As per Math.hypot, expect with 2 args. </td></tr> <tr><td> [max](./rc-js-util._math.max.md) </td><td> `static` `readonly` </td><td> typeof mathMax </td><td> Returns the larger of the two parameters `a` and `b`<!-- -->. </td></tr> <tr><td> [min](./rc-js-util._math.min.md) </td><td> `static` `readonly` </td><td> typeof mathMin </td><td> Returns the smaller of the two parameters `a` and `b`<!-- -->. </td></tr> </tbody></table>