docs.unity.cn
    Show / Hide Table of Contents

    Method atan

    atan(Single)

    Returns the arctangent of a float value.

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

    A tangent value, usually the ratio y/x on the unit circle.

    Returns
    Type Description
    Single

    The arctangent of the input, in radians.

    atan(float2)

    Returns the componentwise arctangent of a float2 vector.

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

    A tangent value, usually the ratio y/x on the unit circle.

    Returns
    Type Description
    float2

    The componentwise arctangent of the input, in radians.

    atan(float3)

    Returns the componentwise arctangent of a float3 vector.

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

    A tangent value, usually the ratio y/x on the unit circle.

    Returns
    Type Description
    float3

    The componentwise arctangent of the input, in radians.

    atan(float4)

    Returns the componentwise arctangent of a float4 vector.

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

    A tangent value, usually the ratio y/x on the unit circle.

    Returns
    Type Description
    float4

    The componentwise arctangent of the input, in radians.

    atan(Double)

    Returns the arctangent of a double value.

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

    A tangent value, usually the ratio y/x on the unit circle.

    Returns
    Type Description
    Double

    The arctangent of the input, in radians.

    atan(double2)

    Returns the componentwise arctangent of a double2 vector.

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

    A tangent value, usually the ratio y/x on the unit circle.

    Returns
    Type Description
    double2

    The componentwise arctangent of the input, in radians.

    atan(double3)

    Returns the componentwise arctangent of a double3 vector.

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

    A tangent value, usually the ratio y/x on the unit circle.

    Returns
    Type Description
    double3

    The componentwise arctangent of the input, in radians.

    atan(double4)

    Returns the componentwise arctangent of a double4 vector.

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

    A tangent value, usually the ratio y/x on the unit circle.

    Returns
    Type Description
    double4

    The componentwise arctangent of the input, in radians.

    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Tuesday, March 29, 2022
    Terms of use