docs.unity.cn
    Show / Hide Table of Contents

    Method degrees

    degrees(Single)

    Returns the result of converting a double value from radians to degrees.

    Declaration
    public static float degrees(float x)
    Parameters
    Type Name Description
    Single x

    Angle in radians.

    Returns
    Type Description
    Single

    Angle converted to degrees.

    degrees(float2)

    Returns the result of a componentwise conversion of a double2 vector from radians to degrees.

    Declaration
    public static float2 degrees(float2 x)
    Parameters
    Type Name Description
    float2 x

    Vector containing angles in radians.

    Returns
    Type Description
    float2

    Vector containing angles converted to degrees.

    degrees(float3)

    Returns the result of a componentwise conversion of a double3 vector from radians to degrees.

    Declaration
    public static float3 degrees(float3 x)
    Parameters
    Type Name Description
    float3 x

    Vector containing angles in radians.

    Returns
    Type Description
    float3

    Vector containing angles converted to degrees.

    degrees(float4)

    Returns the result of a componentwise conversion of a double4 vector from radians to degrees.

    Declaration
    public static float4 degrees(float4 x)
    Parameters
    Type Name Description
    float4 x

    Vector containing angles in radians.

    Returns
    Type Description
    float4

    Vector containing angles converted to degrees.

    degrees(Double)

    Returns the result of converting a double value from radians to degrees.

    Declaration
    public static double degrees(double x)
    Parameters
    Type Name Description
    Double x

    Angle in radians.

    Returns
    Type Description
    Double

    Angle converted to degrees.

    degrees(double2)

    Returns the result of a componentwise conversion of a double2 vector from radians to degrees.

    Declaration
    public static double2 degrees(double2 x)
    Parameters
    Type Name Description
    double2 x

    Vector containing angles in radians.

    Returns
    Type Description
    double2

    Vector containing angles converted to degrees.

    degrees(double3)

    Returns the result of a componentwise conversion of a double3 vector from radians to degrees.

    Declaration
    public static double3 degrees(double3 x)
    Parameters
    Type Name Description
    double3 x

    Vector containing angles in radians.

    Returns
    Type Description
    double3

    Vector containing values converted to degrees.

    degrees(double4)

    Returns the result of a componentwise conversion of a double4 vector from radians to degrees.

    Declaration
    public static double4 degrees(double4 x)
    Parameters
    Type Name Description
    double4 x

    Vector containing angles in radians.

    Returns
    Type Description
    double4

    Vector containing angles converted to degrees.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023