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

math.degrees

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 degrees(float x);

Parameters

Parameter Description
x Angle in radians.

Returns

float Angle converted to degrees.

Description

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


Declaration

public static float2 degrees(float2 x);

Parameters

Parameter Description
x Vector containing angles in radians.

Returns

float2 Vector containing angles converted to degrees.

Description

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


Declaration

public static float3 degrees(float3 x);

Parameters

Parameter Description
x Vector containing angles in radians.

Returns

float3 Vector containing angles converted to degrees.

Description

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


Declaration

public static float4 degrees(float4 x);

Parameters

Parameter Description
x Vector containing angles in radians.

Returns

float4 Vector containing angles converted to degrees.

Description

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


Declaration

public static double degrees(double x);

Parameters

Parameter Description
x Angle in radians.

Returns

double Angle converted to degrees.

Description

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


Declaration

public static double2 degrees(double2 x);

Parameters

Parameter Description
x Vector containing angles in radians.

Returns

double2 Vector containing angles converted to degrees.

Description

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


Declaration

public static double3 degrees(double3 x);

Parameters

Parameter Description
x Vector containing angles in radians.

Returns

double3 Vector containing values converted to degrees.

Description

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


Declaration

public static double4 degrees(double4 x);

Parameters

Parameter Description
x Vector containing angles in radians.

Returns

double4 Vector containing angles converted to degrees.

Description

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