| // Copyright 2016 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| class Tolerance { |
| final double distance; |
| final double time; |
| final double velocity; |
| |
| const Tolerance({this.distance: epsilonDefault, this.time: epsilonDefault, |
| this.velocity: epsilonDefault}); |
| |
| String toString() => 'Tolerance(distance: $distance, time=$time, velocity: $velocity)'; |
| } |
| |
| const double epsilonDefault = 1e-3; |
| const Tolerance toleranceDefault = const Tolerance(); |