Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

VRageMath.QuaternionD

Malware edited this page Jan 26, 2019 · 43 revisions

IndexNamespace Index

QuaternionD Struct

public struct QuaternionD

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

Namespace: VRageMath
Assembly: VRage.Math.dll

Fields

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

Constructors

Member Description
QuaternionD(double, double, double, double)
QuaternionD(Vector3D, double)

Methods

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