[]
        
(Showing Draft Content)

C1.Util.DX.DXUtil.WithinEpsilon

WithinEpsilon Method

WithinEpsilon(float, float, float)

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

Declaration
public static bool WithinEpsilon(float a, float b, float epsilon)
Parameters
Type Name Description
float a

The left value to compare.

float b

The right value to compare.

float epsilon

Epsilon value

Returns
Type Description
bool

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