mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-26 07:22:21 +00:00
145 lines
2.4 KiB
TypeScript
145 lines
2.4 KiB
TypeScript
|
export const E = Mathf.E;
|
||
|
export const LN10 = Mathf.LN10;
|
||
|
export const LN2 = Mathf.LN2;
|
||
|
export const LOG10E = Mathf.LOG10E;
|
||
|
export const LOG2E = Mathf.LOG2E;
|
||
|
export const PI = Mathf.PI;
|
||
|
export const SQRT1_2 = Mathf.SQRT1_2;
|
||
|
export const SQRT2 = Mathf.SQRT2;
|
||
|
|
||
|
export function abs(x: f32): f32 {
|
||
|
return Mathf.abs(x);
|
||
|
}
|
||
|
|
||
|
export function acos(x: f32): f32 {
|
||
|
return Mathf.acos(x);
|
||
|
}
|
||
|
|
||
|
export function acosh(x: f32): f32 {
|
||
|
return Mathf.acosh(x);
|
||
|
}
|
||
|
|
||
|
export function asin(x: f32): f32 {
|
||
|
return Mathf.asin(x);
|
||
|
}
|
||
|
|
||
|
export function asinh(x: f32): f32 {
|
||
|
return Mathf.asinh(x);
|
||
|
}
|
||
|
|
||
|
export function atan(x: f32): f32 {
|
||
|
return Mathf.atan(x);
|
||
|
}
|
||
|
|
||
|
export function atanh(x: f32): f32 {
|
||
|
return Mathf.atanh(x);
|
||
|
}
|
||
|
|
||
|
export function atan2(y: f32, x: f32): f32 {
|
||
|
return Mathf.atan2(y, x);
|
||
|
}
|
||
|
|
||
|
export function cbrt(x: f32): f32 {
|
||
|
return Mathf.cbrt(x);
|
||
|
}
|
||
|
|
||
|
export function ceil(x: f32): f32 {
|
||
|
return Mathf.ceil(x);
|
||
|
}
|
||
|
|
||
|
export function clz32(x: f32): f32 {
|
||
|
return Mathf.clz32(x);
|
||
|
}
|
||
|
|
||
|
export function cos(x: f32): f32 {
|
||
|
return Mathf.cos(x);
|
||
|
}
|
||
|
|
||
|
export function cosh(x: f32): f32 {
|
||
|
return Mathf.cosh(x);
|
||
|
}
|
||
|
|
||
|
export function exp(x: f32): f32 {
|
||
|
return Mathf.exp(x);
|
||
|
}
|
||
|
|
||
|
export function expm1(x: f32): f32 {
|
||
|
return Mathf.expm1(x);
|
||
|
}
|
||
|
|
||
|
export function floor(x: f32): f32 {
|
||
|
return Mathf.floor(x);
|
||
|
}
|
||
|
|
||
|
export function fround(x: f32): f32 {
|
||
|
return Mathf.fround(x);
|
||
|
}
|
||
|
|
||
|
export function hypot(a: f32, b: f32): f32 {
|
||
|
return Mathf.hypot(a, b);
|
||
|
}
|
||
|
|
||
|
export function imul(a: f32, b: f32): f32 {
|
||
|
return Mathf.imul(a, b);
|
||
|
}
|
||
|
|
||
|
export function log(x: f32): f32 {
|
||
|
return Mathf.log(x);
|
||
|
}
|
||
|
|
||
|
export function log10(x: f32): f32 {
|
||
|
return Mathf.log10(x);
|
||
|
}
|
||
|
|
||
|
export function log1p(x: f32): f32 {
|
||
|
return Mathf.log1p(x);
|
||
|
}
|
||
|
|
||
|
export function log2(x: f32): f32 {
|
||
|
return Mathf.log2(x);
|
||
|
}
|
||
|
|
||
|
export function max(a: f32, b: f32): f32 {
|
||
|
return Mathf.max(a, b);
|
||
|
}
|
||
|
|
||
|
export function min(a: f32, b: f32): f32 {
|
||
|
return Mathf.min(a, b);
|
||
|
}
|
||
|
|
||
|
export function pow(x: f32, y: f32): f32 {
|
||
|
return Mathf.pow(x, y);
|
||
|
}
|
||
|
|
||
|
export function round(x: f32): f32 {
|
||
|
return Mathf.round(x);
|
||
|
}
|
||
|
|
||
|
export function sign(x: f32): f32 {
|
||
|
return Mathf.sign(x);
|
||
|
}
|
||
|
|
||
|
export function sin(x: f32): f32 {
|
||
|
return Mathf.sin(x);
|
||
|
}
|
||
|
|
||
|
export function sinh(x: f32): f32 {
|
||
|
return Mathf.sinh(x);
|
||
|
}
|
||
|
|
||
|
export function sqrt(x: f32): f32 {
|
||
|
return Mathf.sqrt(x);
|
||
|
}
|
||
|
|
||
|
export function tan(x: f32): f32 {
|
||
|
return Mathf.tan(x);
|
||
|
}
|
||
|
|
||
|
export function tanh(x: f32): f32 {
|
||
|
return Mathf.tanh(x);
|
||
|
}
|
||
|
|
||
|
export function trunc(x: f32): f32 {
|
||
|
return Mathf.trunc(x);
|
||
|
}
|