Class RaycastResultComparer
Compares the Raycast Results from Unity's Graphic & Physics Raycasters.
Implements
IComparer<ComparableRaycastResult>
Namespace: Microsoft.MixedReality.Toolkit.Physics
Assembly: cs.temp.dll.dll
Syntax
public class RaycastResultComparer : IComparer<ComparableRaycastResult>, IComparer<ComparableRaycastResult>
Properties
Comparers
Declaration
protected virtual List<Func<ComparableRaycastResult, ComparableRaycastResult, int>> Comparers { get; }
Property Value
Type | Description |
---|---|
List<Func<ComparableRaycastResult, ComparableRaycastResult, Int32>> |
Comparers
Declaration
protected virtual List<Func<ComparableRaycastResult, ComparableRaycastResult, int>> Comparers { get; }
Property Value
Type | Description |
---|---|
List<Func<ComparableRaycastResult, ComparableRaycastResult, Int32>> |
Methods
Compare(ComparableRaycastResult, ComparableRaycastResult)
Declaration
public int Compare(ComparableRaycastResult left, ComparableRaycastResult right)
Parameters
Type | Name | Description |
---|---|---|
ComparableRaycastResult | left | |
ComparableRaycastResult | right |
Returns
Type | Description |
---|---|
Int32 |
Compare(ComparableRaycastResult, ComparableRaycastResult)
Declaration
public int Compare(ComparableRaycastResult left, ComparableRaycastResult right)
Parameters
Type | Name | Description |
---|---|---|
ComparableRaycastResult | left | |
ComparableRaycastResult | right |
Returns
Type | Description |
---|---|
Int32 |
CompareRaycastsByCanvasDepth(ComparableRaycastResult, ComparableRaycastResult)
Declaration
protected static int CompareRaycastsByCanvasDepth(ComparableRaycastResult left, ComparableRaycastResult right)
Parameters
Type | Name | Description |
---|---|---|
ComparableRaycastResult | left | |
ComparableRaycastResult | right |
Returns
Type | Description |
---|---|
Int32 |
CompareRaycastsByCanvasDepth(ComparableRaycastResult, ComparableRaycastResult)
Declaration
protected static int CompareRaycastsByCanvasDepth(ComparableRaycastResult left, ComparableRaycastResult right)
Parameters
Type | Name | Description |
---|---|---|
ComparableRaycastResult | left | |
ComparableRaycastResult | right |
Returns
Type | Description |
---|---|
Int32 |
CompareRaycastsByDistance(ComparableRaycastResult, ComparableRaycastResult)
Declaration
protected static int CompareRaycastsByDistance(ComparableRaycastResult left, ComparableRaycastResult right)
Parameters
Type | Name | Description |
---|---|---|
ComparableRaycastResult | left | |
ComparableRaycastResult | right |
Returns
Type | Description |
---|---|
Int32 |
CompareRaycastsByDistance(ComparableRaycastResult, ComparableRaycastResult)
Declaration
protected static int CompareRaycastsByDistance(ComparableRaycastResult left, ComparableRaycastResult right)
Parameters
Type | Name | Description |
---|---|---|
ComparableRaycastResult | left | |
ComparableRaycastResult | right |
Returns
Type | Description |
---|---|
Int32 |
CompareRaycastsByLayerMaskPrioritization(ComparableRaycastResult, ComparableRaycastResult)
Declaration
protected static int CompareRaycastsByLayerMaskPrioritization(ComparableRaycastResult left, ComparableRaycastResult right)
Parameters
Type | Name | Description |
---|---|---|
ComparableRaycastResult | left | |
ComparableRaycastResult | right |
Returns
Type | Description |
---|---|
Int32 |
CompareRaycastsByLayerMaskPrioritization(ComparableRaycastResult, ComparableRaycastResult)
Declaration
protected static int CompareRaycastsByLayerMaskPrioritization(ComparableRaycastResult left, ComparableRaycastResult right)
Parameters
Type | Name | Description |
---|---|---|
ComparableRaycastResult | left | |
ComparableRaycastResult | right |
Returns
Type | Description |
---|---|
Int32 |
CompareRaycastsBySortingLayer(ComparableRaycastResult, ComparableRaycastResult)
Declaration
protected static int CompareRaycastsBySortingLayer(ComparableRaycastResult left, ComparableRaycastResult right)
Parameters
Type | Name | Description |
---|---|---|
ComparableRaycastResult | left | |
ComparableRaycastResult | right |
Returns
Type | Description |
---|---|
Int32 |
CompareRaycastsBySortingLayer(ComparableRaycastResult, ComparableRaycastResult)
Declaration
protected static int CompareRaycastsBySortingLayer(ComparableRaycastResult left, ComparableRaycastResult right)
Parameters
Type | Name | Description |
---|---|---|
ComparableRaycastResult | left | |
ComparableRaycastResult | right |
Returns
Type | Description |
---|---|
Int32 |
CompareRaycastsBySortingOrder(ComparableRaycastResult, ComparableRaycastResult)
Declaration
protected static int CompareRaycastsBySortingOrder(ComparableRaycastResult left, ComparableRaycastResult right)
Parameters
Type | Name | Description |
---|---|---|
ComparableRaycastResult | left | |
ComparableRaycastResult | right |
Returns
Type | Description |
---|---|
Int32 |
CompareRaycastsBySortingOrder(ComparableRaycastResult, ComparableRaycastResult)
Declaration
protected static int CompareRaycastsBySortingOrder(ComparableRaycastResult left, ComparableRaycastResult right)
Parameters
Type | Name | Description |
---|---|---|
ComparableRaycastResult | left | |
ComparableRaycastResult | right |
Returns
Type | Description |
---|---|
Int32 |
Implements
IComparer<>