Photon Fusion 2.0.3

Static Public Member Functions | List of all members
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. More...
 
static void SortReference (this List< LagCompensatedHit > hits, Vector3 reference)
 Sorts all hits in ascending order of distance from LagCompensatedHit.Point to the reference point. More...
 

Detailed Description

LagCompensated Extension methods

Member Function Documentation

◆ SortDistance()

static 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()

static 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.