docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Class Vector2ComparerWithEqualsOperator

    Use these classes to compare two objects of the same type for equality within the range of a given tolerance using NUnit or custom constraints . Call Instance to apply the default calculation error value to the comparison.

    Inheritance
    object
    Vector2ComparerWithEqualsOperator
    Implements
    IEqualityComparer<Vector2>
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: UnityEngine.TestTools.Utils
    Assembly: solution.dll
    Syntax
    public class Vector2ComparerWithEqualsOperator : IEqualityComparer<Vector2>

    Properties

    Name Description
    Instance

    A singleton instance of the comparer with a predefined default error value.

    Methods

    Name Description
    Equals(Vector2, Vector2)

    Compares the actual and expected objects for equality using a custom comparison mechanism.

    GetHashCode(Vector2)

    Serves as the default hash function.

    In This Article
    Back to top
    Copyright © 2023 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)