Struct Quaternionf
Namespace: g3
Assembly: cs.temp.dll.dll
Syntax
public struct Quaternionf : IComparable<Quaternionf>, IEquatable<Quaternionf>
Constructors
Quaternionf(Matrix3f)
Declaration
public Quaternionf(Matrix3f mat)
Parameters
Quaternionf(Quaternionf)
Declaration
public Quaternionf(Quaternionf q2)
Parameters
Quaternionf(Quaternionf, Quaternionf, Single)
Declaration
public Quaternionf(Quaternionf p, Quaternionf q, float t)
Parameters
Quaternionf(Vector3f, Vector3f)
Declaration
public Quaternionf(Vector3f vFrom, Vector3f vTo)
Parameters
Quaternionf(Vector3f, Single)
Declaration
public Quaternionf(Vector3f axis, float AngleDeg)
Parameters
Quaternionf(Single, Single, Single, Single)
Declaration
public Quaternionf(float x, float y, float z, float w)
Parameters
Quaternionf(Single[])
Declaration
public Quaternionf(float[] v2)
Parameters
Type |
Name |
Description |
Single[] |
v2 |
|
Fields
Identity
Declaration
public static readonly Quaternionf Identity
Field Value
w
Declaration
Field Value
x
Declaration
Field Value
y
Declaration
Field Value
z
Declaration
Field Value
Zero
Declaration
public static readonly Quaternionf Zero
Field Value
Properties
AxisX
Declaration
public Vector3f AxisX { get; }
Property Value
AxisY
Declaration
public Vector3f AxisY { get; }
Property Value
AxisZ
Declaration
public Vector3f AxisZ { get; }
Property Value
Item[Int32]
Declaration
public float this[int key] { get; set; }
Parameters
Type |
Name |
Description |
Int32 |
key |
|
Property Value
Length
Declaration
public float Length { get; }
Property Value
LengthSquared
Declaration
public float LengthSquared { get; }
Property Value
Normalized
Declaration
public Quaternionf Normalized { get; }
Property Value
Methods
AxisAngleD(Vector3f, Single)
Declaration
public static Quaternionf AxisAngleD(Vector3f axis, float angleDeg)
Parameters
Returns
AxisAngleR(Vector3f, Single)
Declaration
public static Quaternionf AxisAngleR(Vector3f axis, float angleRad)
Parameters
Returns
CompareTo(Quaternionf)
Declaration
public int CompareTo(Quaternionf other)
Parameters
Returns
Dot(Quaternionf)
Declaration
public float Dot(Quaternionf q2)
Parameters
Returns
EpsilonEqual(Quaternionf, Single)
Declaration
public bool EpsilonEqual(Quaternionf q2, float epsilon)
Parameters
Returns
Equals(Quaternionf)
Declaration
public bool Equals(Quaternionf other)
Parameters
Returns
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Overrides
FromTo(Vector3f, Vector3f)
Declaration
public static Quaternionf FromTo(Vector3f vFrom, Vector3f vTo)
Parameters
Returns
FromToConstrained(Vector3f, Vector3f, Vector3f)
Declaration
public static Quaternionf FromToConstrained(Vector3f vFrom, Vector3f vTo, Vector3f vAround)
Parameters
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
Inverse()
Declaration
public Quaternionf Inverse()
Returns
Inverse(Quaternionf)
Declaration
public static Quaternionf Inverse(Quaternionf q)
Parameters
Returns
InverseMultiply(ref Vector3d)
Declaration
public Vector3d InverseMultiply(ref Vector3d v)
Parameters
Returns
InverseMultiply(ref Vector3f)
Declaration
public Vector3f InverseMultiply(ref Vector3f v)
Parameters
Returns
Normalize(Single)
Declaration
public float Normalize(float epsilon = 0F)
Parameters
Type |
Name |
Description |
Single |
epsilon |
|
Returns
SetAxisAngleD(Vector3f, Single)
Declaration
public void SetAxisAngleD(Vector3f axis, float AngleDeg)
Parameters
SetFromRotationMatrix(Matrix3f)
Declaration
public void SetFromRotationMatrix(Matrix3f rot)
Parameters
SetFromTo(Vector3f, Vector3f)
Declaration
public void SetFromTo(Vector3f vFrom, Vector3f vTo)
Parameters
SetToSlerp(Quaternionf, Quaternionf, Single)
Declaration
public void SetToSlerp(Quaternionf p, Quaternionf q, float t)
Parameters
Slerp(Quaternionf, Quaternionf, Single)
Declaration
public static Quaternionf Slerp(Quaternionf p, Quaternionf q, float t)
Parameters
Returns
ToRotationMatrix()
Declaration
public Matrix3f 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
Equality(Quaternionf, Quaternionf)
Declaration
public static bool operator ==(Quaternionf a, Quaternionf b)
Parameters
Returns
Inequality(Quaternionf, Quaternionf)
Declaration
public static bool operator !=(Quaternionf a, Quaternionf b)
Parameters
Returns
Multiply(Quaternionf, Quaternionf)
Declaration
public static Quaternionf operator *(Quaternionf a, Quaternionf b)
Parameters
Returns
Multiply(Quaternionf, Vector3d)
Declaration
public static Vector3d operator *(Quaternionf q, Vector3d v)
Parameters
Returns
Multiply(Quaternionf, Vector3f)
Declaration
public static Vector3f operator *(Quaternionf q, Vector3f v)
Parameters
Returns
Subtraction(Quaternionf, Quaternionf)
Declaration
public static Quaternionf operator -(Quaternionf q1, Quaternionf q2)
Parameters
Returns
Implements