ドキュメント

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.