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).
This class provides 7 methods for working with Quaternion objects in Java programs.
Available methods include: Quaternion, conjugate, fromAngleAxis, fromEuler, getIdentity, multiply, normalize.
All exported members are accessible to any Java application after installing the Aspose.3D FOSS for Java package.
Properties: identity.
Description
Quaternion is a class in the Aspose.3D FOSS library for Java that exposes 7 methods and 1 property for programmatic use. It extends Serializable, inheriting shared functionality from its parent type.
Core capabilities include: quaternion. These operations enable developers to integrate quaternion functionality directly into Java applications.
The class also provides the identity property (gets the identity).
The class offers 2 constructor overloads, allowing flexible initialization depending on the calling context.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
identity | Quaternion | Read | Gets the identity. |
Methods
| Signature | Description |
|---|---|
Quaternion() | Initializes quaternion with given x, y, z, w components |
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 axis vector |
getIdentity() → Quaternion | Returns the identity. |
normalize() → Quaternion | Returns a unit‑length quaternion equivalent to the original |
conjugate() → Quaternion | Returns the conjugate of the quaternion (negates vector part) |
multiply(a: Quaternion, b: Quaternion) → Quaternion | Returns the product of two quaternions a and b |
multiply(q: Quaternion) → Quaternion |