docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Vector2LexicographicalComparer

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

    Inheritance
    object
    Vector2LexicographicalComparer
    Implements
    IComparer<Vector2>
    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 Vector2LexicographicalComparer : IComparer<Vector2>

    Methods

    Compare(Vector2, Vector2)

    Compares two Vector2 values lexicographically.

    Declaration
    public int Compare(Vector2 v1, Vector2 v2)
    Parameters
    Type Name Description
    Vector2 v1

    The first Vector2 value to compare.

    Vector2 v2

    The second Vector2 value to compare.

    Returns
    Type Description
    int

    A value indicating the relative order of the two Vector2 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)