Struct Quaterniond
Namespace: g3
Assembly: cs.temp.dll.dll
Syntax
public struct Quaterniond
Constructors
Quaterniond(Matrix3d)
Declaration
public Quaterniond(Matrix3d mat)
Parameters
Quaterniond(Quaterniond)
Declaration
public Quaterniond(Quaterniond q2)
Parameters
Quaterniond(Quaterniond, Quaterniond, Double)
Declaration
public Quaterniond(Quaterniond p, Quaterniond q, double t)
Parameters
Quaterniond(Vector3d, Vector3d)
Declaration
public Quaterniond(Vector3d vFrom, Vector3d vTo)
Parameters
Quaterniond(Vector3d, Double)
Declaration
public Quaterniond(Vector3d axis, double AngleDeg)
Parameters
Quaterniond(Double, Double, Double, Double)
Declaration
public Quaterniond(double x, double y, double z, double w)
Parameters
Quaterniond(Double[])
Declaration
public Quaterniond(double[] v2)
Parameters
Type |
Name |
Description |
Double[] |
v2 |
|
Fields
Identity
Declaration
public static readonly Quaterniond Identity
Field Value
w
Declaration
Field Value
x
Declaration
Field Value
y
Declaration
Field Value
z
Declaration
Field Value
Zero
Declaration
public static readonly Quaterniond Zero
Field Value
Properties
AxisX
Declaration
public Vector3d AxisX { get; }
Property Value
AxisY
Declaration
public Vector3d AxisY { get; }
Property Value
AxisZ
Declaration
public Vector3d AxisZ { get; }
Property Value
Item[Int32]
Declaration
public double this[int key] { get; set; }
Parameters
Type |
Name |
Description |
Int32 |
key |
|
Property Value
Length
Declaration
public double Length { get; }
Property Value
LengthSquared
Declaration
public double LengthSquared { get; }
Property Value
Normalized
Declaration
public Quaterniond Normalized { get; }
Property Value
Methods
AxisAngleD(Vector3d, Double)
Declaration
public static Quaterniond AxisAngleD(Vector3d axis, double angleDeg)
Parameters
Returns
AxisAngleR(Vector3d, Double)
Declaration
public static Quaterniond AxisAngleR(Vector3d axis, double angleRad)
Parameters
Returns
Conjugate()
Equivalent to transpose of matrix. similar to inverse, but w/o normalization...
Declaration
public Quaterniond Conjugate()
Returns
Dot(Quaterniond)
Declaration
public double Dot(Quaterniond q2)
Parameters
Returns
EpsilonEqual(Quaterniond, Double)
Declaration
public bool EpsilonEqual(Quaterniond q2, double epsilon)
Parameters
Returns
FromTo(Vector3d, Vector3d)
Declaration
public static Quaterniond FromTo(Vector3d vFrom, Vector3d vTo)
Parameters
Returns
FromToConstrained(Vector3d, Vector3d, Vector3d)
Declaration
public static Quaterniond FromToConstrained(Vector3d vFrom, Vector3d vTo, Vector3d vAround)
Parameters
Returns
Inverse()
Declaration
public Quaterniond Inverse()
Returns
Inverse(Quaterniond)
Declaration
public static Quaterniond Inverse(Quaterniond q)
Parameters
Returns
Normalize(Double)
Declaration
public double Normalize(double epsilon = 0)
Parameters
Type |
Name |
Description |
Double |
epsilon |
|
Returns
SetAxisAngleD(Vector3d, Double)
Declaration
public void SetAxisAngleD(Vector3d axis, double AngleDeg)
Parameters
SetFromRotationMatrix(Matrix3d)
Declaration
public void SetFromRotationMatrix(Matrix3d rot)
Parameters
SetFromRotationMatrix(ref Matrix3d)
Declaration
public void SetFromRotationMatrix(ref Matrix3d rot)
Parameters
SetFromTo(Vector3d, Vector3d)
Declaration
public void SetFromTo(Vector3d vFrom, Vector3d vTo)
Parameters
SetToSlerp(Quaterniond, Quaterniond, Double)
Declaration
public void SetToSlerp(Quaterniond p, Quaterniond q, double t)
Parameters
Slerp(Quaterniond, Quaterniond, Double)
Declaration
public static Quaterniond Slerp(Quaterniond p, Quaterniond q, double t)
Parameters
Returns
ToRotationMatrix()
Declaration
public Matrix3d ToRotationMatrix()
Returns
ToString()
Declaration
public override string ToString()
Returns
Overrides
ToString(String)
Declaration
public string ToString(string fmt)
Parameters
Type |
Name |
Description |
String |
fmt |
|
Returns
Operators
Addition(Quaterniond, Quaterniond)
Declaration
public static Quaterniond operator +(Quaterniond q1, Quaterniond q2)
Parameters
Returns
Explicit(Quaterniond to Quaternionf)
Declaration
public static explicit operator Quaternionf(Quaterniond q)
Parameters
Returns
Implicit(Quaternionf to Quaterniond)
Declaration
public static implicit operator Quaterniond(Quaternionf q)
Parameters
Returns
Multiply(Quaterniond, Quaterniond)
Declaration
public static Quaterniond operator *(Quaterniond a, Quaterniond b)
Parameters
Returns
Multiply(Quaterniond, Vector3d)
Declaration
public static Vector3d operator *(Quaterniond q, Vector3d v)
Parameters
Returns
Multiply(Quaterniond, Double)
Declaration
public static Quaterniond operator *(Quaterniond q1, double d)
Parameters
Returns
Multiply(Double, Quaterniond)
Declaration
public static Quaterniond operator *(double d, Quaterniond q1)
Parameters
Returns
Subtraction(Quaterniond, Quaterniond)
Declaration
public static Quaterniond operator -(Quaterniond q1, Quaterniond q2)
Parameters
Returns
UnaryNegation(Quaterniond)
Declaration
public static Quaterniond operator -(Quaterniond q2)
Parameters
Returns