Version: Unity 6.5 Alpha (6000.5)
LanguageEnglish
  • C#

math.radians

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public static float radians(float x);

Parameters

Parameter Description
x Angle in degrees.

Returns

float Angle converted to radians.

Description

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


Declaration

public static float2 radians(float2 x);

Parameters

Parameter Description
x Vector containing angles in degrees.

Returns

float2 Vector containing angles converted to radians.

Description

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


Declaration

public static float3 radians(float3 x);

Parameters

Parameter Description
x Vector containing angles in degrees.

Returns

float3 Vector containing angles converted to radians.

Description

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


Declaration

public static float4 radians(float4 x);

Parameters

Parameter Description
x Vector containing angles in degrees.

Returns

float4 Vector containing angles converted to radians.

Description

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


Declaration

public static double radians(double x);

Parameters

Parameter Description
x Angle in degrees.

Returns

double Angle converted to radians.

Description

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


Declaration

public static double2 radians(double2 x);

Parameters

Parameter Description
x Vector containing angles in degrees.

Returns

double2 Vector containing angles converted to radians.

Description

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


Declaration

public static double3 radians(double3 x);

Parameters

Parameter Description
x Vector containing angles in degrees.

Returns

double3 Vector containing angles converted to radians.

Description

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


Declaration

public static double4 radians(double4 x);

Parameters

Parameter Description
x Vector containing angles in degrees.

Returns

double4 Vector containing angles converted to radians.

Description

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