Skip to main content

math#

Pure math utilities.

Functions#

  • math.Math — The full JavaScript Math global plus the standard numeric globals are available inside scripts as the platform sandbox exposes them.
  • math.clamp — Constrain value into the inclusive range [min, max].
  • math.lerp — Linear interpolation between a and b by parameter t.
  • math.percentile — Linear-interpolation percentile of values.
  • math.round — Round value to the given number of decimal places.