namespace Unity.UIWidgets.physics { public class Tolerance { public Tolerance( double distance = _epsilonDefault, double time = _epsilonDefault, double velocity = _epsilonDefault ) { this.distance = distance; this.time = time; this.velocity = velocity; } const double _epsilonDefault = 1e-3; public static readonly Tolerance defaultTolerance = new Tolerance(); public readonly double distance; public readonly double time; public readonly double velocity; public override string ToString() { return $"Tolerance(distance: ±{this.distance}, time: ±{this.time}, velocity: ±{this.velocity})"; } } }