QuaternionField class
Methods
-
add(Quaternion a, Quaternion b)
→ Quaternion
-
Computes the addition:
a + b.
override
-
div(Quaternion a, Quaternion b)
→ Quaternion
-
Computes the division:
a / b.
override
-
division(Quaternion a, Quaternion b)
→ Quaternion
-
Computes a truncating division:
a ~/ b.
override
-
gcd(Quaternion a, Quaternion b)
→ Quaternion
-
Computes the greatest common divisor:
gcd(a, b).
override
-
inv(Quaternion a)
→ Quaternion
-
Computes the multiplicative inverse:
1 / a.
override
-
mod(Quaternion a, Quaternion b)
→ Quaternion
-
Computes the remainder of the Euclidean division
a % b.
override
-
modInverse(Quaternion base, Quaternion modulus)
→ Quaternion
-
Computes the modular multiplicative inverse of
base modulo modulus.
override
-
modPow(Quaternion base, Quaternion exponent, Quaternion modulus)
→ Quaternion
-
Computes
base to the power of exponent modulo modulus.
override
-
mul(Quaternion a, Quaternion b)
→ Quaternion
-
Computes the multiplication:
a * b.
override
-
neg(Quaternion a)
→ Quaternion
-
Computes the additive inverse:
-a.
override
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
pow(Quaternion base, Quaternion exponent)
→ Quaternion
-
Computes
base to the power of exponent.
override
-
remainder(Quaternion a, Quaternion b)
→ Quaternion
-
Computes the remainder of the truncating division.
override
-
scale(Quaternion a, num f)
→ Quaternion
-
Computes the multiplicative scaling:
a * f.
override
-
sub(Quaternion a, Quaternion b)
→ Quaternion
-
Computes the subtraction:
a - b.
override
-
toString()
→ String
-
A string representation of this object.
inherited
-
unsupportedOperation(String operation)
→ Quaternion
-
Thrown when an operation is not supported.
inherited