Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


FloatComparer

Creates an instance of the comparer.
Read time 1 minuteLast updated 6 days ago

Definition

FloatComparer()

Creates an instance of the comparer.
public FloatComparer()

FloatComparer(bool)

Creates an instance of the comparer.
public FloatComparer(bool relative)

Parameters

relative

Should a relative check be used when comparing values? By default, an absolute check will be used.

FloatComparer(float)

Creates an instance of the comparer.
public FloatComparer(float error)

Parameters

error

Allowed comparison error. By default, the FloatComparer.kEpsilon is used.

FloatComparer(float, bool)

Creates an instance of the comparer.
public FloatComparer(float error, bool relative)

Parameters

error

Allowed comparison error. By default, the FloatComparer.kEpsilon is used.

relative

Should a relative check be used when comparing values? By default, an absolute check will be used.