Table of Contents

Class M2Box

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

A model-space box: minimum and maximum corner vectors.

public class M2Box : IDisposable
Inheritance
M2Box
Implements
Inherited Members

Constructors

M2Box()

public M2Box()

M2Box(C3Vector, C3Vector)

public M2Box(C3Vector minimum, C3Vector maximum)

Parameters

minimum C3Vector
maximum C3Vector

M2Box(M2Box)

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

public M2Box(M2Box other)

Parameters

other M2Box

Properties

Maximum

The maximum corner.

public C3Vector Maximum { get; set; }

Property Value

C3Vector

Minimum

The minimum corner.

public C3Vector Minimum { get; set; }

Property Value

C3Vector

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

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

Parameters

l M2Box
r M2Box

Returns

bool

operator !=(M2Box?, M2Box?)

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

Parameters

l M2Box
r M2Box

Returns

bool