Uses of Class
civitas.celestis.math.complex.Quaternion
Packages that use Quaternion
Package
Description
-
Uses of Quaternion in civitas.celestis.math.complex
Fields in civitas.celestis.math.complex declared as QuaternionModifier and TypeFieldDescriptionstatic final QuaternionQuaternion.IDENTITYThe identity quaternion.Methods in civitas.celestis.math.complex that return QuaternionModifier and TypeMethodDescriptionQuaternion.add(double s) Adds a scalar to this quaternion, then returns the resulting quaternion.Quaternion.add(Quaternion q) Adds another quaternion to this quaternion, then returns the resulting quaternion.Quaternion.conjugate()Returns the conjugate of this quaternion.Quaternion.divide(double s) Divides this quaternion by a scalar, then returns the resulting quaternion.static QuaternionQuaternions.from(double pitch, double yaw, double roll) Creates a new rotation quaternion from Euler angle representation.static QuaternionCreates a new quaternion from a 3x3 rotation matrix.static QuaternionCreates a new rotation quaternion from an axis/angle notation.static QuaternionCreates a new rotation quaternion from Euler angle representation.static QuaternionCreates a new rotation quaternion from an axis/angle notation.Quaternion.inverse()Returns the inverse of this quaternion.static QuaternionQuaternions.lerp(Quaternion s, Quaternion e, double t) Performs linear interpolation (LERP) between the starting valuesand the ending valuee.Quaternion.multiply(double s) Multiplies this quaternion by a scalar, then returns the resulting quaternion.Quaternion.multiply(Quaternion q) Multiplies this quaternion by the provided quaternionq.Quaternion.negate()Negates this quaternion, then returns the negated quaternion.Quaternion.normalize()Normalizes this quaternion to have a Euclidean norm (magnitude) of1.Quaternion.normalizeOrDefault(Quaternion q) Normalizes this quaternion to have a Euclidean norm (magnitude) of1.Quaternion.normalizeOrIdentity()Normalizes this quaternion to have a Euclidean norm (magnitude) of1.static QuaternionQuaternions.random()Returns a random rotation quaternion.Quaternion.scale(double s) Scales the rotation of this quaternion, then returns the resulting quaternion.static QuaternionQuaternions.slerp(Quaternion start, Quaternion end, double t) Performs spherical linear interpolation (SLERP) between two quaternions.Quaternion.subtract(double s) Subtracts this quaternion by a scalar, then returns the resulting quaternion.Quaternion.subtract(Quaternion q) Subtracts this quaternion by another quaternion, then returns the resulting quaternion.Methods in civitas.celestis.math.complex with parameters of type QuaternionModifier and TypeMethodDescriptionQuaternion.add(Quaternion q) Adds another quaternion to this quaternion, then returns the resulting quaternion.static doubleQuaternions.angle(Quaternion q) Given a rotation quaternionq, this returns the angle of the rotation, in the context of axis/angle notation.static Vector3Quaternions.axis(Quaternion q) Given a rotation quaternionq, this returns the axis of the rotation.static Double4Quaternions.axisAngle(Quaternion q) Given a rotation quaternionq, this returns an axis/angle pair denoting the rotation of the quaternion.doubleQuaternion.dot(Quaternion q) Returns the dot product between this quaternion and the provided quaternionq.static Double3Quaternions.eulerAngles(Quaternion q) Given a rotation quaternionq, this returns a tuple of doubles containing the pitch, yaw, and roll angles of the quaternion in pitch-yaw-roll order.static QuaternionQuaternions.lerp(Quaternion s, Quaternion e, double t) Performs linear interpolation (LERP) between the starting valuesand the ending valuee.static MatrixQuaternions.matrix(Quaternion q) Given a rotation quaternionq, this converts the rotation into a 3x3 rotation matrix.Quaternion.multiply(Quaternion q) Multiplies this quaternion by the provided quaternionq.Quaternion.normalizeOrDefault(Quaternion q) Normalizes this quaternion to have a Euclidean norm (magnitude) of1.static doubleQuaternions.pitch(Quaternion q) Given a rotation quaternionq, this returns the pitch of the rotation.static doubleQuaternions.roll(Quaternion q) Given a rotation quaternionq, this returns the roll of this rotation.static QuaternionQuaternions.slerp(Quaternion start, Quaternion end, double t) Performs spherical linear interpolation (SLERP) between two quaternions.Quaternion.subtract(Quaternion q) Subtracts this quaternion by another quaternion, then returns the resulting quaternion.static doubleQuaternions.yaw(Quaternion q) Given a rotation quaternionq, this returns the yaw of the rotation. -
Uses of Quaternion in civitas.celestis.math.decimal
Constructors in civitas.celestis.math.decimal with parameters of type Quaternion -
Uses of Quaternion in civitas.celestis.math.vector
Methods in civitas.celestis.math.vector that return QuaternionModifier and TypeMethodDescriptionVector3.quaternion()Converts this vector into a pure quaternion.Methods in civitas.celestis.math.vector with parameters of type QuaternionModifier and TypeMethodDescriptionVector3.rotate(Quaternion q) Rotates this vector by the provided rotation quaternionq.