Table of Contents

Class C4Quaternion

Namespace
WoWLib.Formats.Common
Assembly
WoWLib.dll

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

x float
y float
z float
w float

C4Quaternion(C4Quaternion)

Copy-construct: a deep copy of other (the C++ copy constructor).

public C4Quaternion(C4Quaternion other)

Parameters

other C4Quaternion

Properties

W

The w (scalar) component.

public float W { get; set; }

Property Value

float

X

The x component.

public float X { get; set; }

Property Value

float

Y

The y component.

public float Y { get; set; }

Property Value

float

Z

The z component.

public float Z { get; set; }

Property Value

float

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

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Reference-identity hash (the C++ type has no hash to mirror).

public override int GetHashCode()

Returns

int

Operators

operator ==(C4Quaternion?, C4Quaternion?)

public static bool operator ==(C4Quaternion? l, C4Quaternion? r)

Parameters

l C4Quaternion
r C4Quaternion

Returns

bool

operator !=(C4Quaternion?, C4Quaternion?)

public static bool operator !=(C4Quaternion? l, C4Quaternion? r)

Parameters

l C4Quaternion
r C4Quaternion

Returns

bool