docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Vector2IntLexicographicalComparer

    A simple comparer for Vector2Int that compares the x and y values lexicographically.

    Inheritance
    object
    Vector2IntLexicographicalComparer
    Implements
    IComparer<Vector2Int>
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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.

    Implements

    IComparer<T>
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)