@ Pure public static double fromMetersPerSecond ( double value , SpeedUnit outputUnit ) { switch ( outputUnit ) { case KILOMETERS_PER_HOUR : return value / 3.6 ; case MILLIMETERS_PER_SECOND : return value * 1000. ; case METERS_PER_SECOND : default : } return value ; }
Convert the given value expressed in meters per second to the given unit .