Uses of Class
org.apache.commons.numbers.quaternion.Quaternion
-
Packages that use Quaternion Package Description org.apache.commons.numbers.quaternion Quaternion number type. -
-
Uses of Quaternion in org.apache.commons.numbers.quaternion
Fields in org.apache.commons.numbers.quaternion declared as Quaternion Modifier and Type Field Description static Quaternion
Quaternion. I
i.static Quaternion
Quaternion. J
j.static Quaternion
Quaternion. K
k.static Quaternion
Quaternion. ONE
Identity quaternion.static Quaternion
Quaternion. ZERO
Zero quaternion.Methods in org.apache.commons.numbers.quaternion that return Quaternion Modifier and Type Method Description Quaternion
Quaternion. add(Quaternion q)
Computes the sum of the instance and another quaternion.static Quaternion
Quaternion. add(Quaternion q1, Quaternion q2)
Computes the sum of two quaternions.Quaternion
Slerp. apply(double t)
Performs the interpolation.Quaternion
Quaternion. conjugate()
Returns the conjugate of this quaternion number.Quaternion
Quaternion. divide(double alpha)
Divides the instance by a scalar.Quaternion
Quaternion. inverse()
Returns the inverse of this instance.Quaternion
Quaternion. multiply(double alpha)
Multiplies the instance by a scalar.Quaternion
Quaternion. multiply(Quaternion q)
Returns the Hamilton product of the instance by a quaternion.static Quaternion
Quaternion. multiply(Quaternion q1, Quaternion q2)
Returns the Hamilton product of two quaternions.Quaternion
Quaternion. negate()
Returns the opposite of this instance.Quaternion
Quaternion. normalize()
Computes the normalized quaternion (the versor of the instance).static Quaternion
Quaternion. of(double[] v)
Builds a pure quaternion from a vector (assuming that the scalar part is zero).static Quaternion
Quaternion. of(double scalar, double[] v)
Builds a quaternion from scalar and vector parts.static Quaternion
Quaternion. of(double w, double x, double y, double z)
Builds a quaternion from its components.static Quaternion
Quaternion. parse(String s)
Parses a string that would be produced bytoString()
and instantiates the corresponding object.Quaternion
Quaternion. positivePolarForm()
Returns the polar form of the quaternion.Quaternion
Quaternion. subtract(Quaternion q)
Subtracts a quaternion from the instance.static Quaternion
Quaternion. subtract(Quaternion q1, Quaternion q2)
Subtracts two quaternions.Methods in org.apache.commons.numbers.quaternion with parameters of type Quaternion Modifier and Type Method Description Quaternion
Quaternion. add(Quaternion q)
Computes the sum of the instance and another quaternion.static Quaternion
Quaternion. add(Quaternion q1, Quaternion q2)
Computes the sum of two quaternions.double
Quaternion. dot(Quaternion q)
Computes the dot-product of the instance by a quaternion.static double
Quaternion. dot(Quaternion q1, Quaternion q2)
Computes the dot-product of two quaternions.boolean
Quaternion. equals(Quaternion q, double eps)
Checks whether this instance is equal to another quaternion within a given tolerance.Quaternion
Quaternion. multiply(Quaternion q)
Returns the Hamilton product of the instance by a quaternion.static Quaternion
Quaternion. multiply(Quaternion q1, Quaternion q2)
Returns the Hamilton product of two quaternions.Quaternion
Quaternion. subtract(Quaternion q)
Subtracts a quaternion from the instance.static Quaternion
Quaternion. subtract(Quaternion q1, Quaternion q2)
Subtracts two quaternions.Constructors in org.apache.commons.numbers.quaternion with parameters of type Quaternion Constructor Description Slerp(Quaternion start, Quaternion end)
Create an instance.
-