Package | Description |
---|---|
org.mathIT.numbers |
Provides classes for number theory.
|
Modifier and Type | Field and Description |
---|---|
static Quaternion |
Quaternion.I
Constant i ∈ ℍ.
|
static Quaternion |
Quaternion.J
Constant j ∈ ℍ.
|
static Quaternion |
Quaternion.K
Constant k ∈ ℍ.
|
static Quaternion |
Quaternion.ONE
Constant 1 ∈ ℍ.
|
static Quaternion |
Quaternion.ZERO
Constant 0 ∈ ℍ.
|
Modifier and Type | Method and Description |
---|---|
Quaternion |
Quaternion.add(Quaternion y)
Returns the sum of this number and the quaternion z.
|
Quaternion |
Quaternion.conjugate()
Returns the conjugate of this number.
|
Quaternion |
Quaternion.divide(double y)
Divides this quaternion by a real number y.
|
Quaternion |
Quaternion.divideFromLeft(Quaternion y)
Divides this quaternion by a quaternion y from the left.
|
Quaternion |
Quaternion.divideFromRight(Quaternion y)
Divides this quaternion by a quaternion y from the right.
|
Quaternion |
Quaternion.inverse()
Returns the multiplicative inverse, or reciprocal, of this number.
|
Quaternion |
Quaternion.minus(Quaternion y)
Subtracts y from this quaternion.
|
Quaternion |
Quaternion.multiply(double y)
The product of a real number y with this quaternion.
|
Quaternion |
Quaternion.multiply(Quaternion y)
Returns the product of this quaternion and the quaternion y.
|
Quaternion |
Quaternion.plus(Quaternion y)
Returns the sum of this number and the quaternion y.
|
Quaternion |
Quaternion.reciprocal()
Returns the reciprocal of this number.
|
Quaternion |
Quaternion.subtract(Quaternion y)
Subtracts y from this quaternion.
|
Modifier and Type | Method and Description |
---|---|
Quaternion |
Quaternion.add(Quaternion y)
Returns the sum of this number and the quaternion z.
|
Quaternion |
Quaternion.divideFromLeft(Quaternion y)
Divides this quaternion by a quaternion y from the left.
|
Quaternion |
Quaternion.divideFromRight(Quaternion y)
Divides this quaternion by a quaternion y from the right.
|
static boolean |
Quaternion.equals(Quaternion a,
Quaternion b,
double accuracy)
Compares the two quaternions up to the specified accuracy.
|
Quaternion |
Quaternion.minus(Quaternion y)
Subtracts y from this quaternion.
|
Quaternion |
Quaternion.multiply(Quaternion y)
Returns the product of this quaternion and the quaternion y.
|
Quaternion |
Quaternion.plus(Quaternion y)
Returns the sum of this number and the quaternion y.
|
Quaternion |
Quaternion.subtract(Quaternion y)
Subtracts y from this quaternion.
|