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

NameTypeAccessDescription
identityQuaternionReadGets the identity.

Methods

SignatureDescription
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)QuaternionCreates a quaternion representing rotation from Euler angles (x,y,z)
fromAngleAxis(angle: double, axis: Vector3)QuaternionCreates a quaternion from a rotation angle and axis vector
getIdentity()QuaternionReturns the identity.
normalize()QuaternionReturns a unit‑length quaternion equivalent to the original
conjugate()QuaternionReturns the conjugate of the quaternion (negates vector part)
multiply(a: Quaternion, b: Quaternion)QuaternionReturns the product of two quaternions a and b
multiply(q: Quaternion)Quaternion

See Also