SortModeDistance Class
Namespace: Stride.Rendering
Assembly: Stride.Rendering.dll
Helper class to sort objects based on distance.
System.Object →
SortMode →
SortModeDistance
public abstract class SortModeDistance : SortMode
|
Improve this Doc
View Source
Constructors
SortModeDistance(Boolean)
protected SortModeDistance(bool reverseDistance)
Parameters
Type |
Name |
Description |
System.Boolean |
reverseDistance |
|
|
Improve this Doc
View Source
Fields
distancePosition
protected int distancePosition
Field Value
Type |
Description |
System.Int32 |
|
distancePrecision
protected int distancePrecision
Field Value
Type |
Description |
System.Int32 |
|
statePosition
protected int statePosition
Field Value
Type |
Description |
System.Int32 |
|
statePrecision
protected int statePrecision
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Methods
ComputeDistance(Single)
public static uint ComputeDistance(float distance)
Parameters
Type |
Name |
Description |
System.Single |
distance |
|
Returns
Type |
Description |
System.UInt32 |
|
CreateSortKey(Single)
public static SortKey CreateSortKey(float distance)
Parameters
Type |
Name |
Description |
System.Single |
distance |
|
Returns
GenerateSortKey(RenderView, RenderViewStage, SortKey*)
public override void GenerateSortKey(RenderView renderView, RenderViewStage renderViewStage, SortKey*sortKeys)
Parameters
Overrides
Extension Methods