Quaternion class
Methods
-
angleTo(Quaternion q)
→ double
-
-
clone()
→ Quaternion
-
-
conjugate()
→ Quaternion
-
-
copyFromUnknown(dynamic array, [int offset = 0])
→ Quaternion
-
-
dot(Quaternion v)
→ double
-
-
equals(Quaternion quaternion)
→ bool
-
-
fromArray(List<double> array, [int offset = 0])
→ Quaternion
-
-
fromBuffer(BufferAttribute<NativeArray<num>> attribute, int index)
→ Quaternion
-
-
fromNumArray(List<num> array, [int offset = 0])
→ Quaternion
-
-
identity()
→ Quaternion
-
-
invert()
→ Quaternion
-
-
multiply(Quaternion q)
→ 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
-
-
rotateTowards(Quaternion q, double step)
→ Quaternion
-
-
set(double x, double y, double z, double w)
→ Quaternion
-
-
setFrom(Quaternion quaternion)
→ Quaternion
-
-
setFromAxisAngle(Vector3 axis, double angle)
→ Quaternion
-
-
setFromEuler(Euler euler, [bool update = false])
→ Quaternion
-
-
setFromRotationMatrix(dynamic m)
→ Quaternion
-
-
setFromUnitVectors(Vector3 vFrom, Vector3 vTo)
→ Quaternion
-
-
slerp(Quaternion qb, double t)
→ Quaternion
-
-
slerpQuaternions(Quaternion qa, Quaternion qb, double t)
→ Quaternion
-
-
toArray(List<double> array, [int offset = 0])
→ List<double>
-
-
toJson()
→ List<double>
-
-
toNumArray(List<num> array, [int offset = 0])
→ List<num>
-
-
toString()
→ String
-
A string representation of this object.
inherited
Static Methods
-
multiplyQuaternionsFlat(dynamic dst, int dstOffset, dynamic src0, int srcOffset0, dynamic src1, int srcOffset1)
→ dynamic
-
-
slerpFlat(dynamic dst, int dstOffset, dynamic src0, int srcOffset0, dynamic src1, int srcOffset1, double t)
→ void
-
-
staticSlerp(Quaternion qa, Quaternion qb, Quaternion qm, double t)
→ Quaternion
-