blob: 5b764d89242dd89b6c1fe3c502d4fd8107b3c971 [file] [log] [blame]
// 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();