Method ToRadians
ToRadians(Double)
Converts an angle measured in degrees to an approximately equivalent angle measured in radians. The conversion from degrees to radians is generally inexact.
Declaration
public static double ToRadians(this double degrees)
Parameters
Type | Name | Description |
---|---|---|
System.Double | degrees | An angle in degrees to convert to radians |
Returns
Type | Description |
---|---|
System.Double | The value in radians |
ToRadians(Decimal)
Converts an angle measured in degrees to an approximately equivalent angle measured in radians. The conversion from degrees to radians is generally inexact.
Declaration
public static decimal ToRadians(this decimal degrees)
Parameters
Type | Name | Description |
---|---|---|
System.Decimal | degrees | An angle in degrees to convert to radians |
Returns
Type | Description |
---|---|
System.Decimal | The value in radians |
ToRadians(Int32)
Converts an angle measured in degrees to an approximately equivalent angle measured in radians. The conversion from degrees to radians is generally inexact.
Declaration
public static double ToRadians(this int degrees)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | degrees | An angle in degrees to convert to radians |
Returns
Type | Description |
---|---|
System.Double | The value in radians |