Quaternion class

Constructors

Quaternion([double x = 0.0, double y = 0.0, double z = 0.0, double w = 1.0])
Quaternion.fromJson(List<double>? json)
Quaternion.identity()

Properties

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

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

Operators

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