docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method NormalizeAngleDegree

    NormalizeAngleDegree(float)

    Normalizes the input angle to be in the range of -180 and 180.

    Declaration
    public static float NormalizeAngleDegree(float angle)
    Parameters
    Type Name Description
    float angle

    Raw input angle or rotation.

    Returns
    Type Description
    float

    Returns the angle of rotation between -180 and 180.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)