MathfIsEqualApprox Method (Single, Single, Single) |
Returns true if `a` and `b` are approximately equal to each other.
The comparison is done using the provided tolerance value.
If you want the tolerance to be calculated for you, use
IsEqualApprox(Single, Single).
Namespace:
Godot
Assembly:
GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntaxpublic static bool IsEqualApprox(
float a,
float b,
float tolerance
)
Parameters
- a
- Type: SystemSingle
One of the values. - b
- Type: SystemSingle
The other value. - tolerance
- Type: SystemSingle
The pre-calculated tolerance value.
Return Value
Type:
BooleanA bool for whether or not the two values are equal.
See Also