Quaternion class
Methods
-
angleTo(Quaternion q)
→ double
-
-
clone()
→ Quaternion
-
-
conjugate()
→ Quaternion
-
-
copy(Quaternion quaternion)
→ Quaternion
-
-
dot(Quaternion v)
→ num
-
-
equals(Quaternion quaternion)
→ bool
-
-
fromArray(List<num> array, [int offset = 0])
→ Quaternion
-
-
fromBufferAttribute(BufferAttribute<NativeArray<num>> attribute, int index)
→ Quaternion
-
-
identity()
→ Quaternion
-
-
invert()
→ Quaternion
-
-
length()
→ double
-
-
lengthSq()
→ num
-
-
multiply(Quaternion q, {Quaternion? p})
→ Quaternion
-
-
multiplyQuaternions(Quaternion a, Quaternion b)
→ Quaternion
-
-
normalize()
→ Quaternion
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
onChange(Function callback)
→ void
-
-
premultiply(Quaternion q)
→ Quaternion
-
-
random()
→ Quaternion
-
-
rotateTowards(Quaternion q, double step)
→ Quaternion
-
-
set(num x, num y, num z, num w)
→ Quaternion
-
-
setFromAxisAngle(Vector3 axis, num angle)
→ Quaternion
-
-
setFromEuler(Euler euler, [bool update = false])
→ Quaternion
-
-
setFromRotationMatrix(dynamic m)
→ Quaternion
-
-
setFromUnitVectors(Vector3 vFrom, Vector3 vTo)
→ Quaternion
-
-
slerp(Quaternion qb, num t)
→ Quaternion
-
-
slerpQuaternions(Quaternion qa, Quaternion qb, num t)
→ Quaternion
-
-
toArray(List<num> array, [int offset = 0])
→ List<num>
-
-
toJSON()
→ List<num>
-
-
toString()
→ String
-
A string representation of this object.
inherited
Static Methods
-
multiplyQuaternionsFlat(dynamic dst, num dstOffset, dynamic src0, num srcOffset0, dynamic src1, num srcOffset1)
→ dynamic
-
-
slerpFlat(dynamic dst, num dstOffset, dynamic src0, num srcOffset0, dynamic src1, num srcOffset1, num t)
→ void
-
-
staticSlerp(Quaternion qa, Quaternion qb, Quaternion qm, num t)
→ Quaternion
-