Files
cocos4/cocos/vmath.ts
T
2019-08-01 17:02:28 +08:00

45 lines
1.1 KiB
TypeScript

/**
* @hidden
*/
import { deprecatedWrapper } from './deprecated';
import { math } from './core';
const vmath = {};
deprecatedWrapper({
oldTarget: vmath,
oldPrefix: 'vmath',
newTarget: math,
newPrefix: 'math',
pairs: [
['approx', 'approx'],
['EPSILON', 'EPSILON'],
['equals', 'equals'],
['clamp', 'clamp'],
['clamp01', 'clamp01'],
['lerp', 'lerp'],
['toRadian', 'toRadian'],
['toDegree', 'toDegree'],
['random', 'random'],
['randomRange', 'randomRange'],
['randomRangeInt', 'randomRangeInt'],
['pseudoRandom', 'pseudoRandom'],
['pseudoRandomRangeInt', 'pseudoRandomRangeInt'],
['nextPow2', 'nextPow2'],
['repeat', 'repeat'],
['pingPong', 'pingPong'],
['inverseLerp', 'inverseLerp'],
['vec2', 'Vec2'],
['vec3', 'Vec3'],
['vec4', 'Vec4'],
['quat', 'Quat'],
['mat3', 'Mat3'],
['mat4', 'Mat4'],
['color4', 'Color'],
['rect', 'Rect'],
],
});
cc.vmath = vmath;
export { vmath };