Quat class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
w
↔ double
-
getter/setter pair
-
x
↔ double
-
getter/setter pair
-
y
↔ double
-
getter/setter pair
-
z
↔ double
-
getter/setter pair
Methods
-
addTime(Vec3 v, double t)
→ Quat
-
Add time to the current Quant
-
arc(Vec3 v1, Vec3 v2)
→ Quat
-
-
clone()
→ Quat
-
Clone this Quant
-
conjugate()
→ Quat
-
Conjugate the current Quant
-
copy(Quat q)
→ Quat
-
Copy
q
to this
-
equals(Quat q)
→ bool
-
Is
q
equal to this
-
fromArray(List<double> array, [int offset = 0])
→ Quat
-
Set Quant from an array
-
inverse()
→ Quat
-
Inverse the current Quant
-
invert(Quat q)
→ Quat
-
Inverse the current Quant by
q
-
length()
→ double
-
Get the length of the Current Quant
-
lengthSq()
→ double
-
Get the length squared of the Current Quant
-
mult(Quat quat, [Quat? target])
→ Quat
-
Multiply the quaternion with an other quaternion.
-
multiply(Quat q, [Quat? p])
→ Quat
-
Multiply the this by
q
and return either p or this
-
multiplyQuaternions(Quat a, Quat b)
→ Quat
-
Multiply
a
by b
-
normalize()
→ Quat
-
Normalize the current Quant
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
scale(Quat q, double s)
→ Quat
-
Set the current Quant with the new values
-
set(dynamic x, dynamic y, dynamic z, dynamic w)
→ Quat
-
Set the current Quant with the new values
-
setFromAxis(Vec3 axis, double rad)
→ Quat
-
Set Quant from this axis and angle in radians
-
setFromEuler(double x, double y, double z)
→ Quat
-
Set Quant using Euler equation
-
setFromMat33(Mat33 mat)
→ Quat
-
Set Quant from a 3x3 Matrix
-
setFromUnitVectors(Vec3 v1, Vec3 v2)
→ Quat
-
Set Quant from
v1
and v2
-
testDiff(Quat q)
→ bool
-
Is q the same as this
-
toArray(List<double> array, [int offset = 0])
→ void
-
Set this Quant in the form of an array using
array
and offset
-
toString()
→ String
-
A string representation of this object.
override
-
toVec3()
→ Vec3
-
Convert Quant to Vec3
-
vmult(Vec3 v, [Vec3? target])
→ Vec3
-
Multiply the quaternion by a vector