Quat Class

Extends ValueType

Module: cc

Representation of 2D vectors and points.

Index

Properties
  • x Number
  • y Number
  • z Number
  • w Number
Methods
  • constructor Constructor
  • clone clone a Quat object and return the new object
  • set Set values with another quaternion
  • equals Check whether current quaternion equals another
  • quat The convenience method to create a new cc.Quat.
  • lerp Linearly interpolates between this value to to value by ratio which is in the range [0, 1].
  • toString TODO

Details

Properties

x
meta description
Type Number
Defined in cocos2d/core/value-types/quat.js:68
y
meta description
Type Number
Defined in cocos2d/core/value-types/quat.js:71
z
meta description
Type Number
Defined in cocos2d/core/value-types/quat.js:74
w
meta description
Type Number
Defined in cocos2d/core/value-types/quat.js:77

Methods

constructor

Constructor see cc.quat

meta description
Defined in cocos2d/core/value-types/quat.js:41
Parameters
clone

clone a Quat object and return the new object

meta description
Returns Quat
Defined in cocos2d/core/value-types/quat.js:84
set

Set values with another quaternion

meta description
Returns Quat
Defined in cocos2d/core/value-types/quat.js:94
Parameters
  • newValue Quat !#en new value to set. !#zh 要设置的新值
equals

Check whether current quaternion equals another

meta description
Returns Boolean
Defined in cocos2d/core/value-types/quat.js:110
Parameters
quat

The convenience method to create a new cc.Quat.

meta description
Returns Quat
Defined in cocos2d/core/value-types/quat.js:141
Parameters
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 cocos2d/core/value-types/value-type.js:67
Parameters
toString

TODO

meta description
Returns string
Defined in cocos2d/core/value-types/value-type.js:97

results matching ""

    No results matching ""