Class FloatExtensions
Extension methods for flaot type.
Inherited Members
Namespace: Evergine.Mathematics
Assembly: Evergine.Mathematics.dll
Syntax
public static class FloatExtensions
  Methods
Distinct(float, float, float)
Distincts the specified a.
Declaration
public static bool Distinct(this float a, float b, float maxRelativeError = 5.9604645E-06)
  Parameters
| Type | Name | Description | 
|---|---|---|
| float | a | First float.  | 
      
| float | b | Second float.  | 
      
| float | maxRelativeError | The max relative error.  | 
      
Returns
| Type | Description | 
|---|---|
| bool | true if they are distinct.  | 
      
Equal(float, float, float)
Equals the specified a.
Declaration
public static bool Equal(this float a, float b, float maxRelativeError = 5.9604645E-06)
  Parameters
| Type | Name | Description | 
|---|---|---|
| float | a | First float.  | 
      
| float | b | Second float.  | 
      
| float | maxRelativeError | The max relative error.  | 
      
Returns
| Type | Description | 
|---|---|
| bool | true if they equal.  |