docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Class Vector2Extensions

    Extension methods for the Vector2 type.

    Inheritance
    object
    Vector2Extensions
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.XR.CoreUtils
    Assembly: solution.dll
    Syntax
    public static class Vector2Extensions

    Methods

    Name Description
    Abs(Vector2)

    Returns the component-wise absolute value of this vector [abs(x), abs(y)].

    Inverse(Vector2)

    Returns the component-wise inverse of this vector [1/x, 1/y].

    MaxComponent(Vector2)

    Returns the largest component of this vector.

    MinComponent(Vector2)

    Returns the smallest component of this vector.

    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)