Method Approximately
Approximately(float, float)
A faster replacement for Approximately(float, float).
Declaration
public static bool Approximately(float a, float b)
Parameters
Type | Name | Description |
---|---|---|
float | a | The first float to compare. |
float | b | The second float to compare. |
Returns
Type | Description |
---|---|
bool |
Remarks
Compares two floating point values and returns true if they are similar.
As an optimization, this method does not take into account the magnitude of the values it is comparing.
This method may not provide the same results as Mathf.Approximately
for extremely large values.