Struct TQuaternion
  
  
  
  
  Assembly: Geometry.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
  
  
  TQuaternion(double, double, double)
  
  
  Declaration
  
    public TQuaternion(double roll, double pitch, double yaw)
   
  Parameters
  
  
  TQuaternion(double, double, double, double)
  
  
  Declaration
  
    public TQuaternion(double X, double Y, double Z, double W)
   
  Parameters
  
  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
  
  
  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
  
  Overrides
  
  
  ToVector()
  
  
  Declaration
  
    public T3DPoint ToVector()
   
  Returns
  
  
  TryNorm(ref TQuaternion, double)
  
  
  Declaration
  
    public static bool TryNorm(ref TQuaternion q, double Tol = 0)
   
  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
  
  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