mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 15:52:40 +08:00
modfity the creator.t.ds (#2912)
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user