Quaternion class

Constructors

Quaternion([num x = 0.0, num y = 0.0, num z = 0.0, num w = 1.0])
Quaternion.fromJSON(List<num>? json)

Properties

hashCode int
The hash code for this object.
no setterinherited
onChangeCallback Function
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
getter/setter pair
w num
getter/setter pair
x num
getter/setter pair
y num
getter/setter pair
z num
getter/setter pair

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

Operators

operator ==(Object other) bool
The equality operator.
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