Class KaijuAgentsDistance3Sorter
Comparer class to sort by distance along all three axes. Used in the extension methods found in KaijuAgentsSortDistance3.
Inheritance
Implements
Namespace: KaijuSolutions.Agents.Extensions
Syntax
public sealed class KaijuAgentsDistance3Sorter : IComparer<Vector2>, IComparer<Vector3>, IComparer<Transform>, IComparer<Component>, IComparer<GameObject>
Constructors
KaijuAgentsDistance3Sorter()
Create the sorter.
Declaration
public KaijuAgentsDistance3Sorter()
KaijuAgentsDistance3Sorter(Component, Boolean, Nullable<KaijuAngleSortMode>, Nullable<Vector2>)
Create the sorter.
Declaration
public KaijuAgentsDistance3Sorter(Component position, bool farthest = false, KaijuAngleSortMode? mode = null, Vector2? forward = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The position to compare against. |
| System.Boolean | farthest | If this should sort by farthest items first. |
| System.Nullable<KaijuAngleSortMode> | mode | How to break ties based on angle. |
| System.Nullable<Vector2> | forward | The forward direction to break ties on. |
KaijuAgentsDistance3Sorter(GameObject, Boolean, Nullable<KaijuAngleSortMode>, Nullable<Vector2>)
Create the sorter.
Declaration
public KaijuAgentsDistance3Sorter(GameObject position, bool farthest = false, KaijuAngleSortMode? mode = null, Vector2? forward = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The position to compare against. |
| System.Boolean | farthest | If this should sort by farthest items first. |
| System.Nullable<KaijuAngleSortMode> | mode | How to break ties based on angle. |
| System.Nullable<Vector2> | forward | The forward direction to break ties on. |
KaijuAgentsDistance3Sorter(Transform, Boolean, Nullable<KaijuAngleSortMode>, Nullable<Vector2>)
Create the sorter.
Declaration
public KaijuAgentsDistance3Sorter(Transform position, bool farthest = false, KaijuAngleSortMode? mode = null, Vector2? forward = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The position to compare against. |
| System.Boolean | farthest | If this should sort by farthest items first. |
| System.Nullable<KaijuAngleSortMode> | mode | How to break ties based on angle. |
| System.Nullable<Vector2> | forward | The forward direction to break ties on. |
KaijuAgentsDistance3Sorter(Vector2, Boolean, Nullable<KaijuAngleSortMode>, Nullable<Vector2>)
Create the sorter.
Declaration
public KaijuAgentsDistance3Sorter(Vector2 position, bool farthest = false, KaijuAngleSortMode? mode = null, Vector2? forward = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The position to compare against. |
| System.Boolean | farthest | If this should sort by farthest items first. |
| System.Nullable<KaijuAngleSortMode> | mode | How to break ties based on angle. |
| System.Nullable<Vector2> | forward | The forward direction to break ties on. |
KaijuAgentsDistance3Sorter(Vector3, Boolean, Nullable<KaijuAngleSortMode>, Nullable<Vector2>)
Create the sorter.
Declaration
public KaijuAgentsDistance3Sorter(Vector3 position, bool farthest = false, KaijuAngleSortMode? mode = null, Vector2? forward = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The position to compare against. |
| System.Boolean | farthest | If this should sort by farthest items first. |
| System.Nullable<KaijuAngleSortMode> | mode | How to break ties based on angle. |
| System.Nullable<Vector2> | forward | The forward direction to break ties on. |
Fields
Farthest
If this should sort by farthest items first.
Declaration
public bool Farthest
Field Value
| Type | Description |
|---|---|
| System.Boolean |
Forward
The forward direction to break ties on.
Declaration
public Vector2? Forward
Field Value
| Type | Description |
|---|---|
| System.Nullable<Vector2> |
Mode
How to break ties based on angle.
Declaration
public KaijuAngleSortMode? Mode
Field Value
| Type | Description |
|---|---|
| System.Nullable<KaijuAngleSortMode> |
Position
The position to compare against.
Declaration
public Vector3 Position
Field Value
| Type | Description |
|---|---|
| Vector3 |
Properties
Forward3
The forward direction to break ties on.
Declaration
public Vector3? Forward3 { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<Vector3> |
ForwardComponent
The forward direction to break ties on.
Declaration
public Component ForwardComponent { set; }
Property Value
| Type | Description |
|---|---|
| Component |
ForwardGameObject
The forward direction to break ties on.
Declaration
public Component ForwardGameObject { set; }
Property Value
| Type | Description |
|---|---|
| Component |
ForwardTransform
The forward direction to break ties on.
Declaration
public Transform ForwardTransform { set; }
Property Value
| Type | Description |
|---|---|
| Transform |
Position2
The position to compare against.
Declaration
public Vector2 Position2 { get; set; }
Property Value
| Type | Description |
|---|---|
| Vector2 |
PositionComponent
The position to compare against. This will also set the forward for angle tie breaking.
Declaration
public Component PositionComponent { set; }
Property Value
| Type | Description |
|---|---|
| Component |
PositionGameObject
The position to compare against. This will also set the forward for angle tie breaking.
Declaration
public GameObject PositionGameObject { set; }
Property Value
| Type | Description |
|---|---|
| GameObject |
PositionTransform
The position to compare against. This will also set the forward for angle tie breaking.
Declaration
public Transform PositionTransform { set; }
Property Value
| Type | Description |
|---|---|
| Transform |
Methods
Compare(Component, Component)
Compare the two instances.
Declaration
public int Compare(Component x, Component y)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | x | The first instance. |
| Component | y | The second instance. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
Compare(GameObject, GameObject)
Compare the two instances.
Declaration
public int Compare(GameObject x, GameObject y)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | x | The first instance. |
| GameObject | y | The second instance. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
Compare(Transform, Transform)
Compare the two instances.
Declaration
public int Compare(Transform x, Transform y)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | x | The first instance. |
| Transform | y | The second instance. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
Compare(Vector2, Vector2)
Compare the two instances.
Declaration
public int Compare(Vector2 x, Vector2 y)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | x | The first instance. |
| Vector2 | y | The second instance. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
Compare(Vector3, Vector3)
Compare the two instances.
Declaration
public int Compare(Vector3 x, Vector3 y)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | x | The first instance. |
| Vector3 | y | The second instance. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Component, Component, Component, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Component position, Component x, Component y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The position to compare against. |
| Component | x | The first instance. |
| Component | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Component, Component, GameObject, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Component position, Component x, GameObject y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The position to compare against. |
| Component | x | The first instance. |
| GameObject | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Component, Component, Transform, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Component position, Component x, Transform y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The position to compare against. |
| Component | x | The first instance. |
| Transform | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Component, Component, Vector2, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Component position, Component x, Vector2 y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The position to compare against. |
| Component | x | The first instance. |
| Vector2 | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Component, Component, Vector3, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Component position, Component x, Vector3 y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The position to compare against. |
| Component | x | The first instance. |
| Vector3 | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Component, GameObject, Component, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Component position, GameObject x, Component y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The position to compare against. |
| GameObject | x | The first instance. |
| Component | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Component, GameObject, GameObject, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Component position, GameObject x, GameObject y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The position to compare against. |
| GameObject | x | The first instance. |
| GameObject | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Component, GameObject, Transform, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Component position, GameObject x, Transform y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The position to compare against. |
| GameObject | x | The first instance. |
| Transform | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Component, GameObject, Vector2, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Component position, GameObject x, Vector2 y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The position to compare against. |
| GameObject | x | The first instance. |
| Vector2 | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Component, GameObject, Vector3, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Component position, GameObject x, Vector3 y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The position to compare against. |
| GameObject | x | The first instance. |
| Vector3 | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Component, Transform, Component, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Component position, Transform x, Component y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The position to compare against. |
| Transform | x | The first instance. |
| Component | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Component, Transform, GameObject, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Component position, Transform x, GameObject y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The position to compare against. |
| Transform | x | The first instance. |
| GameObject | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Component, Transform, Transform, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Component position, Transform x, Transform y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The position to compare against. |
| Transform | x | The first instance. |
| Transform | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Component, Transform, Vector2, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Component position, Transform x, Vector2 y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The position to compare against. |
| Transform | x | The first instance. |
| Vector2 | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Component, Transform, Vector3, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Component position, Transform x, Vector3 y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The position to compare against. |
| Transform | x | The first instance. |
| Vector3 | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Component, Vector2, Component, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Component position, Vector2 x, Component y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The position to compare against. |
| Vector2 | x | The first instance. |
| Component | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Component, Vector2, GameObject, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Component position, Vector2 x, GameObject y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The position to compare against. |
| Vector2 | x | The first instance. |
| GameObject | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Component, Vector2, Transform, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Component position, Vector2 x, Transform y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The position to compare against. |
| Vector2 | x | The first instance. |
| Transform | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Component, Vector2, Vector2, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Component position, Vector2 x, Vector2 y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The position to compare against. |
| Vector2 | x | The first instance. |
| Vector2 | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Component, Vector2, Vector3, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Component position, Vector2 x, Vector3 y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The position to compare against. |
| Vector2 | x | The first instance. |
| Vector3 | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Component, Vector3, Component, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Component position, Vector3 x, Component y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The position to compare against. |
| Vector3 | x | The first instance. |
| Component | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Component, Vector3, GameObject, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Component position, Vector3 x, GameObject y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The position to compare against. |
| Vector3 | x | The first instance. |
| GameObject | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Component, Vector3, Transform, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Component position, Vector3 x, Transform y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The position to compare against. |
| Vector3 | x | The first instance. |
| Transform | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Component, Vector3, Vector2, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Component position, Vector3 x, Vector2 y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The position to compare against. |
| Vector3 | x | The first instance. |
| Vector2 | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Component, Vector3, Vector3, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Component position, Vector3 x, Vector3 y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The position to compare against. |
| Vector3 | x | The first instance. |
| Vector3 | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(GameObject, Component, Component, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(GameObject position, Component x, Component y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The position to compare against. |
| Component | x | The first instance. |
| Component | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(GameObject, Component, GameObject, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(GameObject position, Component x, GameObject y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The position to compare against. |
| Component | x | The first instance. |
| GameObject | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(GameObject, Component, Transform, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(GameObject position, Component x, Transform y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The position to compare against. |
| Component | x | The first instance. |
| Transform | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(GameObject, Component, Vector2, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(GameObject position, Component x, Vector2 y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The position to compare against. |
| Component | x | The first instance. |
| Vector2 | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(GameObject, Component, Vector3, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(GameObject position, Component x, Vector3 y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The position to compare against. |
| Component | x | The first instance. |
| Vector3 | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(GameObject, GameObject, Component, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(GameObject position, GameObject x, Component y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The position to compare against. |
| GameObject | x | The first instance. |
| Component | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(GameObject, GameObject, GameObject, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(GameObject position, GameObject x, GameObject y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The position to compare against. |
| GameObject | x | The first instance. |
| GameObject | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(GameObject, GameObject, Transform, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(GameObject position, GameObject x, Transform y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The position to compare against. |
| GameObject | x | The first instance. |
| Transform | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(GameObject, GameObject, Vector2, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(GameObject position, GameObject x, Vector2 y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The position to compare against. |
| GameObject | x | The first instance. |
| Vector2 | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(GameObject, GameObject, Vector3, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(GameObject position, GameObject x, Vector3 y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The position to compare against. |
| GameObject | x | The first instance. |
| Vector3 | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(GameObject, Transform, Component, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(GameObject position, Transform x, Component y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The position to compare against. |
| Transform | x | The first instance. |
| Component | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(GameObject, Transform, GameObject, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(GameObject position, Transform x, GameObject y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The position to compare against. |
| Transform | x | The first instance. |
| GameObject | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(GameObject, Transform, Transform, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(GameObject position, Transform x, Transform y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The position to compare against. |
| Transform | x | The first instance. |
| Transform | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(GameObject, Transform, Vector2, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(GameObject position, Transform x, Vector2 y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The position to compare against. |
| Transform | x | The first instance. |
| Vector2 | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(GameObject, Transform, Vector3, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(GameObject position, Transform x, Vector3 y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The position to compare against. |
| Transform | x | The first instance. |
| Vector3 | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(GameObject, Vector2, Component, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(GameObject position, Vector2 x, Component y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The position to compare against. |
| Vector2 | x | The first instance. |
| Component | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(GameObject, Vector2, GameObject, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(GameObject position, Vector2 x, GameObject y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The position to compare against. |
| Vector2 | x | The first instance. |
| GameObject | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(GameObject, Vector2, Transform, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(GameObject position, Vector2 x, Transform y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The position to compare against. |
| Vector2 | x | The first instance. |
| Transform | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(GameObject, Vector2, Vector2, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(GameObject position, Vector2 x, Vector2 y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The position to compare against. |
| Vector2 | x | The first instance. |
| Vector2 | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(GameObject, Vector2, Vector3, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(GameObject position, Vector2 x, Vector3 y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The position to compare against. |
| Vector2 | x | The first instance. |
| Vector3 | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(GameObject, Vector3, Component, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(GameObject position, Vector3 x, Component y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The position to compare against. |
| Vector3 | x | The first instance. |
| Component | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(GameObject, Vector3, GameObject, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(GameObject position, Vector3 x, GameObject y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The position to compare against. |
| Vector3 | x | The first instance. |
| GameObject | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(GameObject, Vector3, Transform, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(GameObject position, Vector3 x, Transform y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The position to compare against. |
| Vector3 | x | The first instance. |
| Transform | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(GameObject, Vector3, Vector2, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(GameObject position, Vector3 x, Vector2 y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The position to compare against. |
| Vector3 | x | The first instance. |
| Vector2 | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(GameObject, Vector3, Vector3, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(GameObject position, Vector3 x, Vector3 y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The position to compare against. |
| Vector3 | x | The first instance. |
| Vector3 | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Transform, Component, Component, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Transform position, Component x, Component y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The position to compare against. |
| Component | x | The first instance. |
| Component | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Transform, Component, GameObject, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Transform position, Component x, GameObject y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The position to compare against. |
| Component | x | The first instance. |
| GameObject | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Transform, Component, Transform, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Transform position, Component x, Transform y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The position to compare against. |
| Component | x | The first instance. |
| Transform | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Transform, Component, Vector2, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Transform position, Component x, Vector2 y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The position to compare against. |
| Component | x | The first instance. |
| Vector2 | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Transform, Component, Vector3, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Transform position, Component x, Vector3 y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The position to compare against. |
| Component | x | The first instance. |
| Vector3 | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Transform, GameObject, Component, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Transform position, GameObject x, Component y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The position to compare against. |
| GameObject | x | The first instance. |
| Component | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Transform, GameObject, GameObject, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Transform position, GameObject x, GameObject y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The position to compare against. |
| GameObject | x | The first instance. |
| GameObject | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Transform, GameObject, Transform, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Transform position, GameObject x, Transform y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The position to compare against. |
| GameObject | x | The first instance. |
| Transform | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Transform, GameObject, Vector2, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Transform position, GameObject x, Vector2 y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The position to compare against. |
| GameObject | x | The first instance. |
| Vector2 | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Transform, GameObject, Vector3, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Transform position, GameObject x, Vector3 y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The position to compare against. |
| GameObject | x | The first instance. |
| Vector3 | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Transform, Transform, Component, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Transform position, Transform x, Component y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The position to compare against. |
| Transform | x | The first instance. |
| Component | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Transform, Transform, GameObject, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Transform position, Transform x, GameObject y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The position to compare against. |
| Transform | x | The first instance. |
| GameObject | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Transform, Transform, Transform, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Transform position, Transform x, Transform y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The position to compare against. |
| Transform | x | The first instance. |
| Transform | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Transform, Transform, Vector2, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Transform position, Transform x, Vector2 y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The position to compare against. |
| Transform | x | The first instance. |
| Vector2 | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Transform, Transform, Vector3, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Transform position, Transform x, Vector3 y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The position to compare against. |
| Transform | x | The first instance. |
| Vector3 | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Transform, Vector2, Component, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Transform position, Vector2 x, Component y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The position to compare against. |
| Vector2 | x | The first instance. |
| Component | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Transform, Vector2, GameObject, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Transform position, Vector2 x, GameObject y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The position to compare against. |
| Vector2 | x | The first instance. |
| GameObject | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Transform, Vector2, Transform, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Transform position, Vector2 x, Transform y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The position to compare against. |
| Vector2 | x | The first instance. |
| Transform | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Transform, Vector2, Vector2, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Transform position, Vector2 x, Vector2 y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The position to compare against. |
| Vector2 | x | The first instance. |
| Vector2 | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Transform, Vector2, Vector3, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Transform position, Vector2 x, Vector3 y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The position to compare against. |
| Vector2 | x | The first instance. |
| Vector3 | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Transform, Vector3, Component, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Transform position, Vector3 x, Component y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The position to compare against. |
| Vector3 | x | The first instance. |
| Component | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Transform, Vector3, GameObject, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Transform position, Vector3 x, GameObject y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The position to compare against. |
| Vector3 | x | The first instance. |
| GameObject | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Transform, Vector3, Transform, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Transform position, Vector3 x, Transform y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The position to compare against. |
| Vector3 | x | The first instance. |
| Transform | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Transform, Vector3, Vector2, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Transform position, Vector3 x, Vector2 y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The position to compare against. |
| Vector3 | x | The first instance. |
| Vector2 | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Transform, Vector3, Vector3, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Transform position, Vector3 x, Vector3 y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The position to compare against. |
| Vector3 | x | The first instance. |
| Vector3 | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Vector2, Component, Component, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Vector2 position, Component x, Component y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The position to compare against. |
| Component | x | The first instance. |
| Component | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Vector2, Component, GameObject, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Vector2 position, Component x, GameObject y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The position to compare against. |
| Component | x | The first instance. |
| GameObject | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Vector2, Component, Transform, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Vector2 position, Component x, Transform y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The position to compare against. |
| Component | x | The first instance. |
| Transform | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Vector2, Component, Vector2, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Vector2 position, Component x, Vector2 y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The position to compare against. |
| Component | x | The first instance. |
| Vector2 | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Vector2, GameObject, Component, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Vector2 position, GameObject x, Component y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The position to compare against. |
| GameObject | x | The first instance. |
| Component | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Vector2, GameObject, GameObject, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Vector2 position, GameObject x, GameObject y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The position to compare against. |
| GameObject | x | The first instance. |
| GameObject | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Vector2, GameObject, Transform, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Vector2 position, GameObject x, Transform y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The position to compare against. |
| GameObject | x | The first instance. |
| Transform | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Vector2, GameObject, Vector2, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Vector2 position, GameObject x, Vector2 y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The position to compare against. |
| GameObject | x | The first instance. |
| Vector2 | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Vector2, Transform, Component, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Vector2 position, Transform x, Component y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The position to compare against. |
| Transform | x | The first instance. |
| Component | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Vector2, Transform, GameObject, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Vector2 position, Transform x, GameObject y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The position to compare against. |
| Transform | x | The first instance. |
| GameObject | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Vector2, Transform, Transform, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Vector2 position, Transform x, Transform y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The position to compare against. |
| Transform | x | The first instance. |
| Transform | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Vector2, Transform, Vector2, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Vector2 position, Transform x, Vector2 y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The position to compare against. |
| Transform | x | The first instance. |
| Vector2 | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Vector2, Vector2, Component, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Vector2 position, Vector2 x, Component y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The position to compare against. |
| Vector2 | x | The first instance. |
| Component | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Vector2, Vector2, GameObject, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Vector2 position, Vector2 x, GameObject y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The position to compare against. |
| Vector2 | x | The first instance. |
| GameObject | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Vector2, Vector2, Transform, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Vector2 position, Vector2 x, Transform y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The position to compare against. |
| Vector2 | x | The first instance. |
| Transform | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Vector2, Vector2, Vector3, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Vector2 position, Vector2 x, Vector3 y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The position to compare against. |
| Vector2 | x | The first instance. |
| Vector3 | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Vector2, Vector3, Component, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Vector2 position, Vector3 x, Component y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The position to compare against. |
| Vector3 | x | The first instance. |
| Component | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Vector2, Vector3, GameObject, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Vector2 position, Vector3 x, GameObject y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The position to compare against. |
| Vector3 | x | The first instance. |
| GameObject | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Vector2, Vector3, Transform, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Vector2 position, Vector3 x, Transform y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The position to compare against. |
| Vector3 | x | The first instance. |
| Transform | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Vector2, Vector3, Vector2, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Vector2 position, Vector3 x, Vector2 y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The position to compare against. |
| Vector3 | x | The first instance. |
| Vector2 | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Vector3, Component, Component, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Vector3 position, Component x, Component y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The position to compare against. |
| Component | x | The first instance. |
| Component | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Vector3, Component, GameObject, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Vector3 position, Component x, GameObject y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The position to compare against. |
| Component | x | The first instance. |
| GameObject | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Vector3, Component, Transform, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Vector3 position, Component x, Transform y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The position to compare against. |
| Component | x | The first instance. |
| Transform | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Vector3, Component, Vector2, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Vector3 position, Component x, Vector2 y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The position to compare against. |
| Component | x | The first instance. |
| Vector2 | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Vector3, Component, Vector3, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Vector3 position, Component x, Vector3 y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The position to compare against. |
| Component | x | The first instance. |
| Vector3 | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Vector3, GameObject, Component, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Vector3 position, GameObject x, Component y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The position to compare against. |
| GameObject | x | The first instance. |
| Component | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Vector3, GameObject, GameObject, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Vector3 position, GameObject x, GameObject y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The position to compare against. |
| GameObject | x | The first instance. |
| GameObject | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Vector3, GameObject, Transform, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Vector3 position, GameObject x, Transform y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The position to compare against. |
| GameObject | x | The first instance. |
| Transform | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Vector3, GameObject, Vector2, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Vector3 position, GameObject x, Vector2 y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The position to compare against. |
| GameObject | x | The first instance. |
| Vector2 | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Vector3, GameObject, Vector3, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Vector3 position, GameObject x, Vector3 y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The position to compare against. |
| GameObject | x | The first instance. |
| Vector3 | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Vector3, Transform, Component, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Vector3 position, Transform x, Component y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The position to compare against. |
| Transform | x | The first instance. |
| Component | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Vector3, Transform, GameObject, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Vector3 position, Transform x, GameObject y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The position to compare against. |
| Transform | x | The first instance. |
| GameObject | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Vector3, Transform, Transform, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Vector3 position, Transform x, Transform y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The position to compare against. |
| Transform | x | The first instance. |
| Transform | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Vector3, Transform, Vector2, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Vector3 position, Transform x, Vector2 y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The position to compare against. |
| Transform | x | The first instance. |
| Vector2 | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Vector3, Transform, Vector3, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Vector3 position, Transform x, Vector3 y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The position to compare against. |
| Transform | x | The first instance. |
| Vector3 | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Vector3, Vector2, Component, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Vector3 position, Vector2 x, Component y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The position to compare against. |
| Vector2 | x | The first instance. |
| Component | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Vector3, Vector2, GameObject, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Vector3 position, Vector2 x, GameObject y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The position to compare against. |
| Vector2 | x | The first instance. |
| GameObject | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Vector3, Vector2, Transform, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Vector3 position, Vector2 x, Transform y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The position to compare against. |
| Vector2 | x | The first instance. |
| Transform | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Vector3, Vector2, Vector2, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Vector3 position, Vector2 x, Vector2 y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The position to compare against. |
| Vector2 | x | The first instance. |
| Vector2 | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Vector3, Vector2, Vector3, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Vector3 position, Vector2 x, Vector3 y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The position to compare against. |
| Vector2 | x | The first instance. |
| Vector3 | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Vector3, Vector3, Component, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Vector3 position, Vector3 x, Component y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The position to compare against. |
| Vector3 | x | The first instance. |
| Component | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Vector3, Vector3, GameObject, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Vector3 position, Vector3 x, GameObject y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The position to compare against. |
| Vector3 | x | The first instance. |
| GameObject | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Vector3, Vector3, Transform, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Vector3 position, Vector3 x, Transform y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The position to compare against. |
| Vector3 | x | The first instance. |
| Transform | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Vector3, Vector3, Vector2, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Vector3 position, Vector3 x, Vector2 y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The position to compare against. |
| Vector3 | x | The first instance. |
| Vector2 | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
CompareDistance3(Vector3, Vector3, Vector3, Boolean)
Compare the two instances.
Declaration
public static int CompareDistance3(Vector3 position, Vector3 x, Vector3 y, bool farthest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The position to compare against. |
| Vector3 | x | The first instance. |
| Vector3 | y | The second instance. |
| System.Boolean | farthest | If this should sort by farthest items first. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Less than zero if the first instance comes first, zero if they are equal, or greater than zero if the second comes first. |
Set(Component, Boolean, Nullable<KaijuAngleSortMode>, Nullable<Vector2>)
Set values for the sorter.
Declaration
public void Set(Component position, bool farthest = false, KaijuAngleSortMode? mode = null, Vector2? forward = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | position | The position to compare against. |
| System.Boolean | farthest | If this should sort by farthest items first. |
| System.Nullable<KaijuAngleSortMode> | mode | How to break ties based on angle. |
| System.Nullable<Vector2> | forward | The forward direction to break ties on. |
Set(GameObject, Boolean, Nullable<KaijuAngleSortMode>, Nullable<Vector2>)
Set values for the sorter.
Declaration
public void Set(GameObject position, bool farthest = false, KaijuAngleSortMode? mode = null, Vector2? forward = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | position | The position to compare against. |
| System.Boolean | farthest | If this should sort by farthest items first. |
| System.Nullable<KaijuAngleSortMode> | mode | How to break ties based on angle. |
| System.Nullable<Vector2> | forward | The forward direction to break ties on. |
Set(Transform, Boolean, Nullable<KaijuAngleSortMode>, Nullable<Vector2>)
Set values for the sorter.
Declaration
public void Set(Transform position, bool farthest = false, KaijuAngleSortMode? mode = null, Vector2? forward = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Transform | position | The position to compare against. |
| System.Boolean | farthest | If this should sort by farthest items first. |
| System.Nullable<KaijuAngleSortMode> | mode | How to break ties based on angle. |
| System.Nullable<Vector2> | forward | The forward direction to break ties on. |
Set(Vector2, Boolean, Nullable<KaijuAngleSortMode>, Nullable<Vector2>)
Set values for the sorter.
Declaration
public void Set(Vector2 position, bool farthest = false, KaijuAngleSortMode? mode = null, Vector2? forward = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | The position to compare against. |
| System.Boolean | farthest | If this should sort by farthest items first. |
| System.Nullable<KaijuAngleSortMode> | mode | How to break ties based on angle. |
| System.Nullable<Vector2> | forward | The forward direction to break ties on. |
Set(Vector3, Boolean, Nullable<KaijuAngleSortMode>, Nullable<Vector2>)
Set values for the sorter.
Declaration
public void Set(Vector3 position, bool farthest = false, KaijuAngleSortMode? mode = null, Vector2? forward = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | position | The position to compare against. |
| System.Boolean | farthest | If this should sort by farthest items first. |
| System.Nullable<KaijuAngleSortMode> | mode | How to break ties based on angle. |
| System.Nullable<Vector2> | forward | The forward direction to break ties on. |
Operators
Implicit(KaijuAgentsDistance3Sorter to Nullable<Vector2>)
Implicit conversion to a nullable Vector2 from the position.
Declaration
public static implicit operator Vector2? (KaijuAgentsDistance3Sorter s)
Parameters
| Type | Name | Description |
|---|---|---|
| KaijuAgentsDistance3Sorter | s | The sorter. |
Returns
| Type | Description |
|---|---|
| System.Nullable<Vector2> | The string from the KaijuSolutions.Agents.Extensions.KaijuAgentsDistance3Sorter.ToString method. |
Implicit(KaijuAgentsDistance3Sorter to Nullable<Vector3>)
Implicit conversion to a nullable Vector3 from the position.
Declaration
public static implicit operator Vector3? (KaijuAgentsDistance3Sorter s)
Parameters
| Type | Name | Description |
|---|---|---|
| KaijuAgentsDistance3Sorter | s | The sorter. |
Returns
| Type | Description |
|---|---|
| System.Nullable<Vector3> | The string from the KaijuSolutions.Agents.Extensions.KaijuAgentsDistance3Sorter.ToString method. |
Implicit(KaijuAgentsDistance3Sorter to String)
Implicit conversion to a string.
Declaration
public static implicit operator string (KaijuAgentsDistance3Sorter s)
Parameters
| Type | Name | Description |
|---|---|---|
| KaijuAgentsDistance3Sorter | s | The sorter. |
Returns
| Type | Description |
|---|---|
| System.String | The string from the KaijuSolutions.Agents.Extensions.KaijuAgentsDistance3Sorter.ToString method. |
Implicit(KaijuAgentsDistance3Sorter to Vector2)
Implicit conversion to a Vector2 from the position.
Declaration
public static implicit operator Vector2(KaijuAgentsDistance3Sorter s)
Parameters
| Type | Name | Description |
|---|---|---|
| KaijuAgentsDistance3Sorter | s | The sorter. |
Returns
| Type | Description |
|---|---|
| Vector2 | The string from the KaijuSolutions.Agents.Extensions.KaijuAgentsDistance3Sorter.ToString method. |
Implicit(KaijuAgentsDistance3Sorter to Vector3)
Implicit conversion to a Vector3 from the position.
Declaration
public static implicit operator Vector3(KaijuAgentsDistance3Sorter s)
Parameters
| Type | Name | Description |
|---|---|---|
| KaijuAgentsDistance3Sorter | s | The sorter. |
Returns
| Type | Description |
|---|---|
| Vector3 | The string from the KaijuSolutions.Agents.Extensions.KaijuAgentsDistance3Sorter.ToString method. |