Photon Fusion 2.1.1

LagCompensatedExt Class Reference

LagCompensated Extension methods. More...

Static Public Member Functions

static void SortDistance (this List< LagCompensatedHit > hits)
 Sorts all hits in ascending order of LagCompensatedHit.Distance.
static void SortReference (this List< LagCompensatedHit > hits, Vector3 reference)
 Sorts all hits in ascending order of distance from LagCompensatedHit.Point to the reference point.

Detailed Description

LagCompensated Extension methods.

Member Function Documentation

◆ SortDistance()

void SortDistance ( this List< LagCompensatedHit > hits)
static

Sorts all hits in ascending order of LagCompensatedHit.Distance.

Parameters
hitsList containing hits to be sorted.
Exceptions
NullReferenceExceptionIf hits are null.

◆ SortReference()

void SortReference ( this List< LagCompensatedHit > hits,
Vector3 reference )
static

Sorts all hits in ascending order of distance from LagCompensatedHit.Point to the reference point.

Parameters
hitsList containing hits to be sorted.
referenceUsed as reference point to compute distance from hit points.
Exceptions
NullReferenceExceptionIf hits are null.