Class C4Quaternion
A quaternion with the scalar part LAST on disk (x, y, z, w) — note the difference from math libraries that lead with w.
public class C4Quaternion : IDisposable
- Inheritance
-
C4Quaternion
- Implements
- Inherited Members
Constructors
C4Quaternion()
public C4Quaternion()
C4Quaternion(float, float, float, float)
public C4Quaternion(float x, float y, float z, float w)
Parameters
C4Quaternion(C4Quaternion)
Copy-construct: a deep copy of other (the C++ copy constructor).
public C4Quaternion(C4Quaternion other)
Parameters
otherC4Quaternion
Properties
W
The w (scalar) component.
public float W { get; set; }
Property Value
X
The x component.
public float X { get; set; }
Property Value
Y
The y component.
public float Y { get; set; }
Property Value
Z
The z component.
public float Z { get; set; }
Property Value
Methods
Dispose()
Release the native object now. Optional: the finalizer releases it on
collection anyway - dispose (or using) when you want native memory back
promptly.
public virtual void Dispose()
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
GetHashCode()
Reference-identity hash (the C++ type has no hash to mirror).
public override int GetHashCode()
Returns
Operators
operator ==(C4Quaternion?, C4Quaternion?)
public static bool operator ==(C4Quaternion? l, C4Quaternion? r)
Parameters
Returns
operator !=(C4Quaternion?, C4Quaternion?)
public static bool operator !=(C4Quaternion? l, C4Quaternion? r)