Class TQuaternion
Inheritance
object
TQuaternion
Assembly: Geometry.VecMatrLib.dll
Syntax
public sealed class TQuaternion : ValueType
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 |
|
double |
Angle |
|
TQuaternion(double, double, double, double)
Declaration
public TQuaternion(double X, double Y, double Z, double W)
Parameters
Type |
Name |
Description |
double |
X |
|
double |
Y |
|
double |
Z |
|
double |
W |
|
TQuaternion(double, double, double)
Declaration
public TQuaternion(double roll, double pitch, double yaw)
Parameters
Type |
Name |
Description |
double |
roll |
|
double |
pitch |
|
double |
yaw |
|
Fields
Unit
Declaration
public static TQuaternion Unit
Field Value
Zero
Declaration
public static TQuaternion Zero
Field Value
Properties
W
Declaration
public double W { get; init; }
Property Value
X
Declaration
public double X { get; init; }
Property Value
Y
Declaration
public double Y { get; init; }
Property Value
Z
Declaration
public double Z { get; init; }
Property Value
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
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 T3DMatrix ToMatrix()
Returns
ToMatrix(T3DPoint)
Declaration
public T3DMatrix ToMatrix(T3DPoint position)
Parameters
Returns
ToString()
Declaration
public override string ToString()
Returns
ToVector()
Declaration
public T3DPoint ToVector()
Returns
TryNorm(ref TQuaternion, double)
Declaration
public static bool TryNorm(ref TQuaternion q, double Tol = 0)
Parameters
Returns
Operators
operator +(TQuaternion, TQuaternion)
Declaration
public static TQuaternion operator +(TQuaternion q1, TQuaternion q2)
Parameters
Returns
operator *(double, TQuaternion)
Declaration
public static TQuaternion operator *(double s, TQuaternion q)
Parameters
Returns
operator -(TQuaternion, TQuaternion)
Declaration
public static TQuaternion operator -(TQuaternion q1, TQuaternion q2)
Parameters
Returns