Skip to content
This repository was archived by the owner on Dec 13, 2025. It is now read-only.

VRageMath.QuaternionD

Malware edited this page Dec 21, 2018 · 44 revisions

Index

QuaternionD Struct

Namespace: VRageMath
Assembly: VRage.Math.dll

Summary

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). Uses double precision floating point numbers for calculation and storage

Fields

Member Description
double X Specifies the x-value of the vector component of the quaternion.
double Y Specifies the y-value of the vector component of the quaternion.
double Z Specifies the z-value of the vector component of the quaternion.
double W Specifies the rotation component of the quaternion.
static VRageMath.QuaternionD Identity

Methods

Member Description
string ToString() Retireves a string representation of the current object.
bool Equals(VRageMath.QuaternionD) Determines whether the specified Object is equal to the QuaternionD.
bool Equals(System.Object) Returns a value that indicates whether the current instance is equal to a specified object.
int GetHashCode() Get the hash code of this object.
double LengthSquared() Calculates the length squared of a QuaternionD.
double Length() Calculates the length of a QuaternionD.
void Normalize() Divides each component of the quaternion by the length of the quaternion.
void GetAxisAngle(ref VRageMath.Vector3D, ref double)
static VRageMath.QuaternionD Normalize(VRageMath.QuaternionD) Divides each component of the quaternion by the length of the quaternion.
static void Normalize(ref VRageMath.QuaternionD, ref VRageMath.QuaternionD) Divides each component of the quaternion by the length of the quaternion.
void Conjugate() Transforms this QuaternionD into its conjugate.
static VRageMath.QuaternionD Conjugate(VRageMath.QuaternionD) Returns the conjugate of a specified QuaternionD.
static void Conjugate(ref VRageMath.QuaternionD, ref VRageMath.QuaternionD) Returns the conjugate of a specified QuaternionD.
static VRageMath.QuaternionD Inverse(VRageMath.QuaternionD) Returns the inverse of a QuaternionD.
static void Inverse(ref VRageMath.QuaternionD, ref VRageMath.QuaternionD) Returns the inverse of a QuaternionD.
static VRageMath.QuaternionD CreateFromAxisAngle(VRageMath.Vector3D, double) Creates a QuaternionD from a vector and an angle to rotate about the vector.
static void CreateFromAxisAngle(ref VRageMath.Vector3D, double, ref VRageMath.QuaternionD) Creates a QuaternionD from a vector and an angle to rotate about the vector.
static VRageMath.QuaternionD CreateFromYawPitchRoll(double, double, double) Creates a new QuaternionD from specified yaw, pitch, and roll angles.
static void CreateFromYawPitchRoll(double, double, double, ref VRageMath.QuaternionD) Creates a new QuaternionD from specified yaw, pitch, and roll angles.
static VRageMath.QuaternionD CreateFromForwardUp(VRageMath.Vector3D, VRageMath.Vector3D) Works for normalized vectors only
static VRageMath.QuaternionD CreateFromRotationMatrix(VRageMath.MatrixD) Creates a QuaternionD from a rotation MatrixD.
static void CreateFromRotationMatrix(ref VRageMath.MatrixD, ref VRageMath.QuaternionD) Creates a QuaternionD from a rotation MatrixD.
static double Dot(VRageMath.QuaternionD, VRageMath.QuaternionD) Calculates the dot product of two Quaternions.
static void Dot(ref VRageMath.QuaternionD, ref VRageMath.QuaternionD, ref double) Calculates the dot product of two Quaternions.
static VRageMath.QuaternionD Slerp(VRageMath.QuaternionD, VRageMath.QuaternionD, double) Interpolates between two quaternions, using spherical linear interpolation.
static void Slerp(ref VRageMath.QuaternionD, ref VRageMath.QuaternionD, double, ref VRageMath.QuaternionD) Interpolates between two quaternions, using spherical linear interpolation.
static VRageMath.QuaternionD Lerp(VRageMath.QuaternionD, VRageMath.QuaternionD, double) Linearly interpolates between two quaternions.
static void Lerp(ref VRageMath.QuaternionD, ref VRageMath.QuaternionD, double, ref VRageMath.QuaternionD) Linearly interpolates between two quaternions.
static VRageMath.QuaternionD Concatenate(VRageMath.QuaternionD, VRageMath.QuaternionD) Concatenates two Quaternions; the result represents the value1 rotation followed by the value2 rotation.
static void Concatenate(ref VRageMath.QuaternionD, ref VRageMath.QuaternionD, ref VRageMath.QuaternionD) Concatenates two Quaternions; the result represents the value1 rotation followed by the value2 rotation.
static VRageMath.QuaternionD Negate(VRageMath.QuaternionD) Flips the sign of each component of the quaternion.
static void Negate(ref VRageMath.QuaternionD, ref VRageMath.QuaternionD) Flips the sign of each component of the quaternion.
static VRageMath.QuaternionD Add(VRageMath.QuaternionD, VRageMath.QuaternionD) Adds two Quaternions.
static void Add(ref VRageMath.QuaternionD, ref VRageMath.QuaternionD, ref VRageMath.QuaternionD) Adds two Quaternions.
static VRageMath.QuaternionD Subtract(VRageMath.QuaternionD, VRageMath.QuaternionD) Subtracts a quaternion from another quaternion.
static void Subtract(ref VRageMath.QuaternionD, ref VRageMath.QuaternionD, ref VRageMath.QuaternionD) Subtracts a quaternion from another quaternion.
static VRageMath.QuaternionD Multiply(VRageMath.QuaternionD, VRageMath.QuaternionD) Multiplies two quaternions.
static void Multiply(ref VRageMath.QuaternionD, ref VRageMath.QuaternionD, ref VRageMath.QuaternionD) Multiplies two quaternions.
static VRageMath.QuaternionD Multiply(VRageMath.QuaternionD, double) Multiplies a quaternion by a scalar value.
static void Multiply(ref VRageMath.QuaternionD, double, ref VRageMath.QuaternionD) Multiplies a quaternion by a scalar value.
static VRageMath.QuaternionD Divide(VRageMath.QuaternionD, VRageMath.QuaternionD) Divides a QuaternionD by another QuaternionD.
static void Divide(ref VRageMath.QuaternionD, ref VRageMath.QuaternionD, ref VRageMath.QuaternionD) Divides a QuaternionD by another QuaternionD.
static VRageMath.QuaternionD FromVector4(VRageMath.Vector4D)
VRageMath.Vector4D ToVector4()
static bool IsZero(VRageMath.QuaternionD)
static bool IsZero(VRageMath.QuaternionD, double)
static void CreateFromTwoVectors(ref VRageMath.Vector3D, ref VRageMath.Vector3D, ref VRageMath.QuaternionD)
static VRageMath.QuaternionD CreateFromTwoVectors(VRageMath.Vector3D, VRageMath.Vector3D)

Clone this wiki locally