Skip to main content

Math extensions

Less than 1 minutefeaturees-proposalmissing-example

Math extensionsopen in new window

Modules

Types

interface Math {
  DEG_PER_RAD: number;
  RAD_PER_DEG: number;
  clamp(x: number, lower: number, upper: number): number;
  degrees(radians: number): number;
  fscale(
    x: number,
    inLow: number,
    inHigh: number,
    outLow: number,
    outHigh: number
  ): number;
  radians(degrees: number): number;
  scale(
    x: number,
    inLow: number,
    inHigh: number,
    outLow: number,
    outHigh: number
  ): number;
}

Entry points

core-js/proposals/math-extensions
core-js(-pure)/full/math/clamp
core-js(-pure)/full/math/deg-per-rad
core-js(-pure)/full/math/degrees
core-js(-pure)/full/math/fscale
core-js(-pure)/full/math/rad-per-deg
core-js(-pure)/full/math/radians
core-js(-pure)/full/math/scale