modfity the creator.t.ds (#2912)

This commit is contained in:
黄家辉
2018-06-27 12:55:21 +08:00
committed by Jare Guo
parent a4eb3ba811
commit c632073018
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -2003,6 +2003,7 @@ cc.defineGetterSetter(cc.macro, "BLEND_SRC", function (){
* @param {Number} a number A
* @param {Number} b number B
* @param {Number} r ratio between 0 and 1
* @return {Number}
* @example {@link cocos2d/core/platform/CCMacro/lerp.js}
*/
cc.lerp = function (a, b, r) {
+2 -2
View File
@@ -285,7 +285,7 @@ proto.scale = function (vector, out) {
* !#en Divides by a number. If you want to save result to another vector, use div() instead.
* !#zh 向量除法。如果你想结果保存到另一个向量,可使用 div() 代替。
* @method divSelf
* @param {Vec2} vector
* @param {Number} divisor
* @return {Vec2} returns this
* @chainable
* @example
@@ -302,7 +302,7 @@ proto.divSelf = function (num) {
* !#en Divides by a number, and returns the new result.
* !#zh 向量除法,并返回新的结果。
* @method div
* @param {Vec2} vector
* @param {Number} divisor
* @param {Vec2} [out] - optional, the receiving vector
* @return {Vec2} the result
* @example