docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method ShortestAngleDistance

    ShortestAngleDistance(double, double, double, double)

    Finds the smallest angle between two angles.

    Declaration
    public static double ShortestAngleDistance(double start, double end, double halfMax, double max)
    Parameters
    Type Name Description
    double start

    The start value.

    double end

    The end value.

    double halfMax

    Half of the max angle.

    double max

    The max angle value.

    Returns
    Type Description
    double

    The angle distance between start and end.

    ShortestAngleDistance(float, float, float, float)

    Finds the smallest angle between two angles.

    Declaration
    public static float ShortestAngleDistance(float start, float end, float halfMax, float max)
    Parameters
    Type Name Description
    float start

    The start value.

    float end

    The end value.

    float halfMax

    Half of the max angle.

    float max

    The max angle value.

    Returns
    Type Description
    float

    The angle distance between start and end.

    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)