Modifier and Type | Field and 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.
|
Modifier and Type | Method and 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 by
toString()
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.
|
Modifier and Type | Method and 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.
|
Constructor and Description |
---|
Slerp(Quaternion start,
Quaternion end) |
Copyright © 2017–2022 The Apache Software Foundation. All rights reserved.