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
y
z
w
Methods
constructor
Constructor
see cc.quat
Parameters
clone
clone a Quat object and return the new object
set
Set values with another quaternion
Parameters
newValue Quat !#en new value to set. !#zh 要设置的新值
equals
Check whether current quaternion equals another
Parameters
quat
The convenience method to create a new cc.Quat.
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.
Parameters
toString
TODO