Table of Contents

Class M2Bounds

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

A bounding volume: axis-aligned extent plus sphere radius.

public class M2Bounds : IDisposable
Inheritance
M2Bounds
Implements
Inherited Members

Constructors

M2Bounds()

public M2Bounds()

M2Bounds(CAaBox, float)

public M2Bounds(CAaBox extent, float radius)

Parameters

extent CAaBox
radius float

M2Bounds(M2Bounds)

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

public M2Bounds(M2Bounds other)

Parameters

other M2Bounds

Properties

Extent

The axis-aligned extent.

public CAaBox Extent { get; set; }

Property Value

CAaBox

Radius

The bounding-sphere radius.

public float Radius { 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 ==(M2Bounds?, M2Bounds?)

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

Parameters

l M2Bounds
r M2Bounds

Returns

bool

operator !=(M2Bounds?, M2Bounds?)

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

Parameters

l M2Bounds
r M2Bounds

Returns

bool