This repository was archived by the owner on Dec 13, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 123
VRageMath.Quaternion
Morten Aune Lyrstad edited this page Apr 16, 2022
·
54 revisions
← Index ← Namespace Index
public struct Quaternion: IEquatable<Quaternion>Defines a four-dimensional vector (x,y,z,w), which is used to efficiently rotate an object about the (x, y, z) vector by the angle theta, where w = cos(theta/2).
Namespace: VRageMath
Assembly: VRage.Math.dll
Implements:
| Member | Description |
|---|---|
| static Quaternion Identity | |
| static Quaternion Zero | |
| float W | Specifies the rotation component of the quaternion. |
| float X | Specifies the x-value of the vector component of the quaternion. |
| float Y | Specifies the y-value of the vector component of the quaternion. |
| float Z | Specifies the z-value of the vector component of the quaternion. |
| Member | Description |
|---|---|
| Vector3 Forward { get; } | |
| Vector3 Right { get; } | |
| Vector3 Up { get; } |
| Member | Description |
|---|---|
| Quaternion(float, float, float, float) | |
| Quaternion(Vector3, float) |
Do you have questions, comments, suggestions for improvements? Is there something I can do better? Did I make a mistake? Please add an issue here, and prefix your issue title with Wiki. Thank you, your help will be very appreciated!