Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


atan

Returns the arctangent of a float value.
Read time 2 minutesLast updated 9 days ago

Definition

atan(float)

Returns the arctangent of a float value.
public static float atan(float x)

Parameters

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

Returns

Type

Description

floatThe arctangent of the input, in radians.

atan(float2)

Returns the componentwise arctangent of a float2 vector.
public static float2 atan(float2 x)

Parameters

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

Returns

Type

Description

float2The componentwise arctangent of the input, in radians.

atan(float3)

Returns the componentwise arctangent of a float3 vector.
public static float3 atan(float3 x)

Parameters

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

Returns

Type

Description

float3The componentwise arctangent of the input, in radians.

atan(float4)

Returns the componentwise arctangent of a float4 vector.
public static float4 atan(float4 x)

Parameters

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

Returns

Type

Description

float4The componentwise arctangent of the input, in radians.

atan(double)

Returns the arctangent of a double value.
public static double atan(double x)

Parameters

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

Returns

Type

Description

doubleThe arctangent of the input, in radians.

atan(double2)

Returns the componentwise arctangent of a double2 vector.
public static double2 atan(double2 x)

Parameters

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

Returns

Type

Description

double2The componentwise arctangent of the input, in radians.

atan(double3)

Returns the componentwise arctangent of a double3 vector.
public static double3 atan(double3 x)

Parameters

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

Returns

Type

Description

double3The componentwise arctangent of the input, in radians.

atan(double4)

Returns the componentwise arctangent of a double4 vector.
public static double4 atan(double4 x)

Parameters

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

Returns

Type

Description

double4The componentwise arctangent of the input, in radians.