docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CompareTo

    CompareTo(DataPoint<TDataType>)

    Compare DataPoint Index values.

    Declaration
    public int CompareTo(DataPoint<TDataType> other)
    Parameters
    Type Name Description
    DataPoint<TDataType> other

    The DataPoint to compare against.

    Returns
    Type Description
    int

    An integer less than 0 if other.Key is greater than Index, 0 if key values are equal, and greater than 0 when other.Key is less than Index.

    Implements
    IComparable<T>.CompareTo(T)

    CompareTo(float)

    Compare DataPoint Index values.

    Declaration
    public int CompareTo(float other)
    Parameters
    Type Name Description
    float other

    An interpolation ratio to compare against.

    Returns
    Type Description
    int

    An integer less than 0 if other.Key is greater than Index, 0 if key values are equal, and greater than 0 when other.Key is less than Index.

    Implements
    IComparable<T>.CompareTo(T)
    In This Article
    Back to top
    Copyright © 2024 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)