Math extensions
Less than 1 minute
Math
extensions
Modules
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
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