Class SortModeDistance
Helper class to sort objects based on distance.
public abstract class SortModeDistance : SortMode
- Inheritance
-
SortModeDistance
- Derived
Constructors
SortModeDistance(bool)
protected SortModeDistance(bool reverseDistance)
Parameters
reverseDistance
bool
Fields
distancePosition
protected int distancePosition
Field Value
distancePrecision
protected int distancePrecision
Field Value
statePosition
protected int statePosition
Field Value
statePrecision
protected int statePrecision
Field Value
Methods
ComputeDistance(float)
public static uint ComputeDistance(float distance)
Parameters
distance
float
Returns
CreateSortKey(float)
public static SortKey CreateSortKey(float distance)
Parameters
distance
float
Returns
GenerateSortKey(RenderView, RenderViewStage, SortKey*)
public override void GenerateSortKey(RenderView renderView, RenderViewStage renderViewStage, SortKey* sortKeys)
Parameters
renderView
RenderViewrenderViewStage
RenderViewStagesortKeys
SortKey*