文档

Unity Engine

Unity Engine

FloatComparer

Creates an instance of the comparer.
阅读时间1 分钟最后更新于 2 个月前

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.