Click or drag to resize
Ab4d.SharpEngine logo

MathUtilsIsSame(Single, Single, Single) Method

Check is the difference between a and b is smaller than the specified tolerance.

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntax
C#
public static bool IsSame(
	float a,
	float b,
	float tolerance
)

Parameters

a  Single
The left value to compare.
b  Single
The right value to compare.
tolerance  Single
float value that specifies how big the difference between values can be so that the values are considered the same

Return Value

Boolean
true if the difference between a and b is smaller than the specified tolerance
See Also