Table of Contents

Class CAaSphere

Namespace
WoWLib.Formats.Common
Assembly
WoWLib.dll

An axis-aligned sphere: position and radius.

public class CAaSphere : IDisposable
Inheritance
CAaSphere
Implements
Inherited Members

Constructors

CAaSphere()

public CAaSphere()

CAaSphere(C3Vector, float)

public CAaSphere(C3Vector position, float radius)

Parameters

position C3Vector
radius float

CAaSphere(CAaSphere)

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

public CAaSphere(CAaSphere other)

Parameters

other CAaSphere

Properties

Position

The center position.

public C3Vector Position { get; set; }

Property Value

C3Vector

Radius

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

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

Parameters

l CAaSphere
r CAaSphere

Returns

bool

operator !=(CAaSphere?, CAaSphere?)

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

Parameters

l CAaSphere
r CAaSphere

Returns

bool