Class DQuaternion
- Namespace
- SearchAThing.Sci
- Assembly
- netcore-sci.dll
Quaternion implementation using doubles for purpose of Vector3D.RotateAboutAxis and Vector3D.RotateAs references:
public class DQuaternion
- Inheritance
-
DQuaternion
- Inherited Members
Remarks
Constructors
DQuaternion(Vector3D, double)
build quaternion from axis and angle. axis will be subjected to normalization.
public DQuaternion(Vector3D axis, double alphaRad)
Parameters
DQuaternion(double, Vector3D)
direct construct quaternion q=[s, v]
public DQuaternion(double s, Vector3D v)
Parameters
Properties
Identity
Identity qi = [1, nullvector]
public static DQuaternion Identity { get; }
Property Value
v
public Vector3D v { get; }
Property Value
Methods
Conjugate()
Conjugate q* = [s, -v]
public DQuaternion Conjugate()
Returns
Operators
operator *(DQuaternion, DQuaternion)
Multiply [sa, va] * [sb, vb] = [sa * sb - va * vb, va x vb + sa * vb + sb * va]
public static DQuaternion operator *(DQuaternion qa, DQuaternion qb)
Parameters
qa
DQuaternionqb
DQuaternion