Method ToDegrees
ToDegrees(Double)
Converts an angle measured in radians to an approximately equivalent angle measured in degrees. The conversion from radians to degrees is generally inexact; users should not expect Cos((90.0).ToRadians()) to exactly equal 0.0.
Declaration
public static double ToDegrees(this double radians)
Parameters
Type | Name | Description |
---|---|---|
System.Double | radians | An angle in radians to convert to radians |
Returns
Type | Description |
---|---|
System.Double | The value in radians |
ToDegrees(Decimal)
Converts an angle measured in radians to an approximately equivalent angle measured in degrees. The conversion from radians to degrees is generally inexact; users should not expect Cos((90.0).ToRadians()) to exactly equal 0.0.
Declaration
public static decimal ToDegrees(this decimal radians)
Parameters
Type | Name | Description |
---|---|---|
System.Decimal | radians | An angle in radians to convert to radians |
Returns
Type | Description |
---|---|
System.Decimal | The value in radians |
ToDegrees(Int32)
Converts an angle measured in radians to an approximately equivalent angle measured in degrees. The conversion from radians to degrees is generally inexact; users should not expect Cos((90.0).ToRadians()) to exactly equal 0.0.
Declaration
public static double ToDegrees(this int radians)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | radians | An angle in radians to convert to radians |
Returns
Type | Description |
---|---|
System.Double | The value in radians |