跳至主要內容

Math 拓展

小于 1 分钟featurees-proposalmissing-example

Math 拓展open in new window

模块

类型

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;
}

入口点

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