Class Vector2IntLexicographicalComparer
A simple comparer for Vector2Int that compares the x and y values lexicographically.
Implements
Inherited Members
Namespace: Unity.AppUI.UI
Assembly: Unity.AppUI.dll
Syntax
public class Vector2IntLexicographicalComparer : IComparer<Vector2Int>
Methods
Compare(Vector2Int, Vector2Int)
Compares two Vector2Int values lexicographically.
Declaration
public int Compare(Vector2Int v1, Vector2Int v2)
Parameters
Type | Name | Description |
---|---|---|
Vector2Int | v1 | The first Vector2Int value to compare. |
Vector2Int | v2 | The second Vector2Int value to compare. |
Returns
Type | Description |
---|---|
int | A value indicating the relative order of the two Vector2Int values. |