Math 拓展
小于 1 分钟
Math
拓展
模块
esnext.math.clamp
esnext.math.deg-per-rad
esnext.math.degrees
esnext.math.fscale
esnext.math.rad-per-deg
esnext.math.radians
esnext.math.scale
类型
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