Methods
Quaternion repräsentiert ein Einheitsquaternion, das für Rotationen verwendet wird. Es vermeidet Gimbal-Lock und ermöglicht eine sanfte Interpolation zwischen Orientierungen. Das Transform Klasse speichert die Rotation als ein Quaternion zugänglich über getRotation() / setRotation().
Methods: com.aspose.threed
Methods
| Methods | Methods |
|---|
Quaternion() | Identitätsquaternion (1, 0, 0, 0) |
Quaternion(double w, double x, double y, double z) | Konstruiert aus vier Komponenten |
Öffentliche Felder
Quaternion verwendet öffentliche Felder für den Zugriff auf Komponenten (keine Getter/Setter-Methoden):
| Methods | Methods | Methods | Methods |
|---|
w | double | q.w | Skalar (reeller) Teil |
x | double | q.x | X‑Komponente des Vektorteils |
y | double | q.y | Y‑Komponente des Vektorteils |
z | double | q.z | Z‑Komponente des Vektorteils |
Berechnete Eigenschaften
| Methods | Methods | Methods | Methods |
|---|
length | double | getLength() | Betrag des Quaternion (sollte sein 1.0 für ein Einheitsquaternion) |
Statische Felder
| Methods | Methods | Methods |
|---|
IDENTITY | Quaternion | Das Identitätsquaternion (1, 0, 0, 0) – keine Rotation |
Statische Methoden
| Methods | Rückgabetyp | Methods |
|---|
Quaternion.fromEuler(double x, double y, double z) | Quaternion | Erstellt ein Quaternion aus Euler‑Winkeln in Grad |
Quaternion.fromAngleAxis(double angle, Vector3 axis) | Quaternion | Erstellt ein Quaternion aus einem Winkel (Radiant) und einer Rotationsachse |
Instanzmethoden
| Methods | Rückgabetyp | Methods |
|---|
normalize() | Quaternion | Gibt eine Kopie mit Einheitslänge zurück |
conjugate() | Quaternion | Gibt das Konjugierte zurück (negierter Vektoranteil) |
inverse() | Quaternion | Gibt das multiplikative Inverse zurück |
toEulerAngles() | Vector3 | Konvertiert zu Euler-Winkeln in Grad |
toMatrix() | Matrix4 | Konvertiert zu einer 4x4-Rotationsmatrix |
Methods
Siehe auch