Struct TQuaternion
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: VecMatrLib.dll
Syntax
public readonly struct TQuaternion
Constructors
TQuaternion(T3DMatrix)
Declaration
public TQuaternion(T3DMatrix m)
Parameters
TQuaternion(T3DPoint, T3DPoint, T3DPoint)
Declaration
public TQuaternion(T3DPoint vX, T3DPoint vY, T3DPoint vZ)
Parameters
TQuaternion(T3DPoint, Double)
Declaration
public TQuaternion(T3DPoint Axis, double Angle)
Parameters
Type |
Name |
Description |
T3DPoint |
Axis |
|
System.Double |
Angle |
|
TQuaternion(Double, Double, Double)
Declaration
public TQuaternion(double roll, double pitch, double yaw)
Parameters
Type |
Name |
Description |
System.Double |
roll |
|
System.Double |
pitch |
|
System.Double |
yaw |
|
TQuaternion(Double, Double, Double, Double)
Declaration
public TQuaternion(double X, double Y, double Z, double W)
Parameters
Type |
Name |
Description |
System.Double |
X |
|
System.Double |
Y |
|
System.Double |
Z |
|
System.Double |
W |
|
Fields
Unit
Declaration
public static TQuaternion Unit
Field Value
Zero
Declaration
public static TQuaternion Zero
Field Value
Properties
W
Declaration
public double W { readonly get; set; }
Property Value
Type |
Description |
System.Double |
|
X
Declaration
public double X { readonly get; set; }
Property Value
Type |
Description |
System.Double |
|
Y
Declaration
public double Y { readonly get; set; }
Property Value
Type |
Description |
System.Double |
|
Z
Declaration
public double Z { readonly get; set; }
Property Value
Type |
Description |
System.Double |
|
Methods
Lerp(TQuaternion, TQuaternion, Double)
Declaration
public static TQuaternion Lerp(TQuaternion a, TQuaternion b, double t)
Parameters
Returns
Norm(TQuaternion)
Declaration
public static TQuaternion Norm(TQuaternion q)
Parameters
Returns
q_mul_q(TQuaternion, TQuaternion)
Declaration
public static double q_mul_q(TQuaternion q1, TQuaternion q2)
Parameters
Returns
Type |
Description |
System.Double |
|
q_x_q(TQuaternion, TQuaternion)
Declaration
public static TQuaternion q_x_q(TQuaternion q1, TQuaternion q2)
Parameters
Returns
SLerp(TQuaternion, TQuaternion, Double)
Declaration
public static TQuaternion SLerp(TQuaternion a, TQuaternion b, double t)
Parameters
Returns
ToMatrix()
Declaration
public readonly T3DMatrix ToMatrix()
Returns
ToMatrix(T3DPoint)
Declaration
public readonly T3DMatrix ToMatrix(T3DPoint position)
Parameters
Returns
ToString()
Declaration
public override readonly string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.ValueType.ToString()
ToVector()
Declaration
public readonly T3DPoint ToVector()
Returns
TryNorm(ref TQuaternion, Double)
Declaration
public static bool TryNorm(ref TQuaternion q, double Tol = 0)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Operators
Addition(TQuaternion, TQuaternion)
Declaration
public static TQuaternion operator +(TQuaternion q1, TQuaternion q2)
Parameters
Returns
Multiply(Double, TQuaternion)
Declaration
public static TQuaternion operator *(double s, TQuaternion q)
Parameters
Returns
Subtraction(TQuaternion, TQuaternion)
Declaration
public static TQuaternion operator -(TQuaternion q1, TQuaternion q2)
Parameters
Returns