ValueType Class
Defined in: https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/value-types/CCValueType.js:31
The base class of all value types.
Index
Methods
cloneThis method returns an exact copy of current value.equalsCompares this object with the other one.lerpLinearly interpolates between this value to to value by ratio which is in the range [0, 1]. When ratio = 0 returns this. When ratio = 1 return to. When ratio = 0.5 returns the average of this and to.toStringTODO
Details
Methods
clone
This method returns an exact copy of current value.
| meta | description |
|---|---|
| Returns | ValueType |
| Defined in | https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/value-types/CCValueType.js:43 |
equals
Compares this object with the other one.
| meta | description |
|---|---|
| Returns | Boolean |
| Defined in | https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/value-types/CCValueType.js:54 |
Parameters
otherValueType
lerp
Linearly interpolates between this value to to value by ratio which is in the range [0, 1]. When ratio = 0 returns this. When ratio = 1 return to. When ratio = 0.5 returns the average of this and to.
| meta | description |
|---|---|
| Returns | ValueType |
| Defined in | https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/value-types/CCValueType.js:66 |
Parameters
toString
TODO
| meta | description |
|---|---|
| Returns | string |
| Defined in | https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/value-types/CCValueType.js:84 |