vmath deprecated add (#5020)

This commit is contained in:
ChiaNing
2019-07-30 19:02:07 +08:00
committed by Weiliang Wang
parent 67ff1bbe25
commit e6393d5002
+9
View File
@@ -322,6 +322,15 @@ if (CC_DEBUG) {
['inverseLerp','cc.math.inverseLerp'],
['EPSILON','cc.math.EPSILON']]);
markAsDeprecatedInObject_2(cc.vmath,
[['vec2','cc.math.Vec2'],
['vec3','cc.math.Vec3'],
['vec4','cc.math.Vec4'],
['mat3','cc.math.Mat3'],
['mat4','cc.math.Mat4'],
['color4','cc.math.Color'],
['rect','cc.math.Rect']]);
markAsDeprecated(cc.misc,
[['clampf','cc.math.clamp'],
['clamp01','cc.math.clamp01'],