Class DoubleExtensions
Extension functions for double type.
Inherited Members
Namespace: Evergine.Mathematics
Assembly: Evergine.Mathematics.dll
Syntax
public static class DoubleExtensions
  Methods
Distinct(double, double, float)
Distincts the specified a.
Declaration
public static bool Distinct(this double a, double b, float maxRelativeError = 1E-07)
  Parameters
| Type | Name | Description | 
|---|---|---|
| double | a | First double.  | 
      
| double | b | Second double.  | 
      
| float | maxRelativeError | The max relative error.  | 
      
Returns
| Type | Description | 
|---|---|
| bool | The result.  | 
      
Equal(double, double, float)
Equals the specified a.
Declaration
public static bool Equal(this double a, double b, float maxRelativeError = 1E-07)
  Parameters
| Type | Name | Description | 
|---|---|---|
| double | a | First double.  | 
      
| double | b | Second double.  | 
      
| float | maxRelativeError | The max relative error.  | 
      
Returns
| Type | Description | 
|---|---|
| bool | The result.  |