FloatComparer
Creates an instance of the comparer.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Constructor
- Namespace: UnityEngine.Assertions.Comparers
- Assembly: UnityEngine.CoreModule
FloatComparer()
Creates an instance of the comparer.
public FloatComparer()
FloatComparer(bool)
Creates an instance of the comparer.
public FloatComparer(bool relative)
Parameters
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
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
Allowed comparison error. By default, the FloatComparer.kEpsilon is used.
Should a relative check be used when comparing values? By default, an absolute check will be used.