Class MathExtensions
Inheritance
Inherited Members
Namespace: Lucene.Net.Support
Assembly: Lucene.Net.dll
Syntax
public static class MathExtensions
  Methods
| Improve this Doc View SourceToDegrees(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(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(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  | 
      
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(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(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  |