FloatComparer Constructor

Declaration

public FloatComparer();

Declaration

public FloatComparer(bool relative);

Declaration

public FloatComparer(float error);

Declaration

public FloatComparer(float error, bool relative);

Parameters

relative Should a relative check be used when comparing values? By default, an absolute check will be used.
error Allowed comparison error. By default, the FloatComparer.kEpsilon is used.

Description

Creates an instance of the comparer.


Did you find this page useful? Please give it a rating: