js-util

Home > rc-js-util > _Math

_Math class

Utilities relating to math.

Signature:

export declare class _Math 

Properties

Property Modifiers Type Description
bound static typeof mathBound Bound a value in to a range.
boundRandom static typeof mathBoundRandom Create a random value between min and max.
hypot2 static typeof mathHypot2 As per Math.hypot, expect with 2 args.
max static typeof mathMax Returns the larger of the two parameters a and b.
min static typeof mathMin Returns the smaller of the two parameters a and b.