docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Abs

    Abs(Vector2)

    Component-wise absolute value

    Declaration
    public static Vector2 Abs(this Vector2 v)
    Parameters
    Type Name Description
    Vector2 v

    Input vector

    Returns
    Type Description
    Vector2

    Component-wise absolute value of the input vector

    Abs(Vector3)

    Component-wise absolute value

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

    Input vector

    Returns
    Type Description
    Vector3

    Component-wise absolute value of the input vector

    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)