Table of Contents

Class M2Vec2Fp69

Namespace
WoWLib.Formats.M2.Root.Record
Assembly
WoWLib.dll

A 2D vector of 6.9 fixed-point values (raw u16 storage).

public class M2Vec2Fp69 : IDisposable
Inheritance
M2Vec2Fp69
Implements
Inherited Members

Constructors

M2Vec2Fp69()

public M2Vec2Fp69()

M2Vec2Fp69(ushort, ushort)

public M2Vec2Fp69(ushort x, ushort y)

Parameters

x ushort
y ushort

M2Vec2Fp69(M2Vec2Fp69)

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

public M2Vec2Fp69(M2Vec2Fp69 other)

Parameters

other M2Vec2Fp69

Properties

X

Raw 6.9 fixed-point x component.

public ushort X { get; set; }

Property Value

ushort

Y

Raw 6.9 fixed-point y component.

public ushort Y { get; set; }

Property Value

ushort

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 ==(M2Vec2Fp69?, M2Vec2Fp69?)

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

Parameters

l M2Vec2Fp69
r M2Vec2Fp69

Returns

bool

operator !=(M2Vec2Fp69?, M2Vec2Fp69?)

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

Parameters

l M2Vec2Fp69
r M2Vec2Fp69

Returns

bool