1
0
Fork 0
flutter_demo_energy/lib/algorithms/velocity.dart

4 lines
132 B
Dart
Raw Normal View History

2023-02-14 08:06:33 +01:00
const _factor = 3.6;
toKmPerHour(double mPerSecond) => mPerSecond * _factor;
tomPerSecond(double kmPerHour) => kmPerHour / _factor;