Table of Contents

Class C4Plane

Namespace
WoWLib.Formats.Common
Assembly
WoWLib.dll

A plane as a normal and its signed distance from the origin.

public class C4Plane : IDisposable
Inheritance
C4Plane
Implements
Inherited Members

Constructors

C4Plane()

public C4Plane()

C4Plane(C3Vector, float)

public C4Plane(C3Vector normal, float distance)

Parameters

normal C3Vector
distance float

C4Plane(C4Plane)

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

public C4Plane(C4Plane other)

Parameters

other C4Plane

Properties

Distance

The signed distance from the origin.

public float Distance { get; set; }

Property Value

float

Normal

The plane normal.

public C3Vector Normal { 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 ==(C4Plane?, C4Plane?)

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

Parameters

l C4Plane
r C4Plane

Returns

bool

operator !=(C4Plane?, C4Plane?)

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

Parameters

l C4Plane
r C4Plane

Returns

bool