Click or drag to resize
Ab4d.SharpEngine logo

MathUtilsWithinEpsilon Method

Checks if a - b are almost equals within a float epsilon.

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
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

Boolean
true if a almost equal to b within a float epsilon, false otherwise
See Also