MCPcopy Create free account
hub / github.com/comaps/comaps / MpsToUnits

Function MpsToUnits

libs/platform/measurement_utils.cpp:192–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190}
191
192double MpsToUnits(double metersPerSecond, Units units)
193{
194 switch (units)
195 {
196 case Units::Imperial: return KmphToMiph(MpsToKmph(metersPerSecond));
197 case Units::Metric: return MpsToKmph(metersPerSecond);
198 }
199 UNREACHABLE();
200}
201
202long FormatSpeed(double metersPerSecond, Units units)
203{

Callers 1

FormatSpeedFunction · 0.85

Calls 2

KmphToMiphFunction · 0.85
MpsToKmphFunction · 0.85

Tested by

no test coverage detected