Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


degrees

Returns the result of converting a double value from radians to degrees.
Read time 2 minutesLast updated 10 days ago

Definition

degrees(float)

Returns the result of converting a double value from radians to degrees.
public static float degrees(float x)

Parameters

Angle in radians.

Returns

Type

Description

floatAngle converted to degrees.

degrees(float2)

Returns the result of a componentwise conversion of a double2 vector from radians to degrees.
public static float2 degrees(float2 x)

Parameters

Vector containing angles in radians.

Returns

Type

Description

float2Vector containing angles converted to degrees.

degrees(float3)

Returns the result of a componentwise conversion of a double3 vector from radians to degrees.
public static float3 degrees(float3 x)

Parameters

Vector containing angles in radians.

Returns

Type

Description

float3Vector containing angles converted to degrees.

degrees(float4)

Returns the result of a componentwise conversion of a double4 vector from radians to degrees.
public static float4 degrees(float4 x)

Parameters

Vector containing angles in radians.

Returns

Type

Description

float4Vector containing angles converted to degrees.

degrees(double)

Returns the result of converting a double value from radians to degrees.
public static double degrees(double x)

Parameters

Angle in radians.

Returns

Type

Description

doubleAngle converted to degrees.

degrees(double2)

Returns the result of a componentwise conversion of a double2 vector from radians to degrees.
public static double2 degrees(double2 x)

Parameters

Vector containing angles in radians.

Returns

Type

Description

double2Vector containing angles converted to degrees.

degrees(double3)

Returns the result of a componentwise conversion of a double3 vector from radians to degrees.
public static double3 degrees(double3 x)

Parameters

Vector containing angles in radians.

Returns

Type

Description

double3Vector containing values converted to degrees.

degrees(double4)

Returns the result of a componentwise conversion of a double4 vector from radians to degrees.
public static double4 degrees(double4 x)

Parameters

Vector containing angles in radians.

Returns

Type

Description

double4Vector containing angles converted to degrees.