Class DoubleExtensions
Extension functions for the double type.
Namespace: Evergine.Mathematics
Assembly: Evergine.Mathematics.dll
Syntax
public static class DoubleExtensions
Methods
Distinct(double, double, float)
Distinguishes the specified value.
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 maximum relative error. |
Returns
Type | Description |
---|---|
bool | The result. |
Equal(double, double, float)
Determines if the specified doubles are equal.
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 maximum relative error. |
Returns
Type | Description |
---|---|
bool | The result. |