|
MathUtilsWithinEpsilon Method |
Checks if a - b are almost equals within a float epsilon.
Namespace: Ab4d.SharpEngine.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax public static bool WithinEpsilon(
float a,
float b,
float epsilon = 1E-06f
)
Parameters
- a Single
- The left value to compare.
- b Single
- The right value to compare.
- epsilon Single (Optional)
- Epsilon value
Return Value
Booleantrue if a almost equal to b within a float epsilon,
false otherwise
See Also