docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method Abs

    Abs(Vector3)

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

    Declaration
    public static Vector3 Abs(this Vector3 vector)
    Parameters
    Type Name Description
    Vector3 vector

    The vector whose absolute value will be returned

    Returns
    Type Description
    Vector3

    A vector containing the component-wise absolute values 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)