mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-09 16:48:43 +08:00
14 lines
224 B
TypeScript
14 lines
224 B
TypeScript
interface Math {
|
|
fround(n: number): number;
|
|
}
|
|
|
|
(() => {
|
|
if (!Math.fround) {
|
|
Math.fround = (function (array) {
|
|
return function (x: number) {
|
|
return array[0] = x, array[0];
|
|
};
|
|
})(new Float32Array(1));
|
|
}
|
|
})();
|