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
| Name | Type | Access | Description |
|---|---|---|---|
identity | Quaternion | Read | Provides the identity quaternion (0,0,0,1) |
Methods
| Signature | Description |
|---|---|
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) → Quaternion | Creates a quaternion representing rotation from Euler angles x, y, z |
fromAngleAxis(angle: double, axis: Vector3) → Quaternion | Creates a quaternion from a rotation angle and an axis vector |
getIdentity() → Quaternion | Returns the identity quaternion (0,0,0,1) |
normalize() → Quaternion | Returns a unit‑length quaternion derived from this quaternion |
conjugate() → Quaternion | Returns the conjugate of this quaternion (negates vector part) |
multiply(a: Quaternion, b: Quaternion) → Quaternion | Returns the product of this quaternion and quaternion q |
multiply(q: Quaternion) → Quaternion |