Quaternion

Overview

Quaternion is a class in Aspose.3D FOSS for Java. Inherits from: Serializable.

Quaternion.Quaternion creates a quaternion with default components (0,0,0,0).

Properties

NameTypeAccessDescription
identityQuaternionReadProvides the identity quaternion (0,0,0,1)

Methods

SignatureDescription
Quaternion()Creates a quaternion with the given x, y, z, w component values
Quaternion(x: double, y: double, z: double, w: double)
fromEuler(x: double, y: double, z: double)QuaternionCreates a quaternion representing rotation from Euler angles x, y, z
fromAngleAxis(angle: double, axis: Vector3)QuaternionCreates a quaternion from a rotation angle and an axis vector
getIdentity()QuaternionReturns the identity quaternion (0,0,0,1)
normalize()QuaternionReturns a unit‑length quaternion derived from this quaternion
conjugate()QuaternionReturns the conjugate of this quaternion (negates vector part)
multiply(a: Quaternion, b: Quaternion)QuaternionReturns the product of this quaternion and quaternion q
multiply(q: Quaternion)Quaternion