 |
MathUtilsWithinEpsilon Method |
Checks if a - b are almost equals within a float epsilon.
Namespace: Ab4d.SharpEngine.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.0.9584+ba1aaa26d4181dd3fa8ed7b6398391d1affa36c8
Syntaxpublic 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