Table of Contents

Class LookAtComparer<TValue>

Namespace
Uncreated.Warfare.Util
Assembly
Uncreated.Warfare.dll
public class LookAtComparer<TValue> : IComparer<TValue>

Type Parameters

TValue
Inheritance
LookAtComparer<TValue>
Implements
IComparer<TValue>
Inherited Members

Constructors

LookAtComparer(Vector3, Func<TValue, Vector3>, bool)

public LookAtComparer(Vector3 lookOrigin, Func<TValue, Vector3> getLookDirection, bool reverse)

Parameters

lookOrigin Vector3
getLookDirection Func<TValue, Vector3>
reverse bool

Methods

Compare(TValue, TValue)

Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.

public int Compare(TValue a, TValue b)

Parameters

a TValue
b TValue

Returns

int

A signed integer that indicates the relative values of x and y, as shown in the following table.
Value

Meaning

Less than zero

x is less than y.

Zero

x equals y.

Greater than zero

x is greater than y.