Here you can find the source of kmhToMs(long kmh)
Parameter | Description |
---|---|
kmh | The value to convert. |
public static long kmhToMs(long kmh)
//package com.java2s; /**/* w ww . j ava 2 s. c o m*/ * Offers various useful methods related to geopositionning. * <p>License: This library is under the GNU Lesser General Public License</p> * * @author Praplan Christophe * @author Velen Stephane * @version 1.0 <p>Geneva, the 23.03.2006 */ public class Main { /** * Convert kilometers/hour into meters/second. * * @param kmh The value to convert. * @return in meters/second. */ public static float kmhToMs(int kmh) { return (float) (kmh / 3.6); } /** * Convert kilometers/hour into meters/second. * * @param kmh The value to convert. * @return in meters/second. */ public float kmhToMs(float kmh) { return (float) (kmh / 3.6); } /** * Convert kilometers/hour into meters/second. * * @param kmh The value to convert. * @return in meters/second. */ public static long kmhToMs(long kmh) { return (long) (kmh / 3.6); } /** * Convert kilometers/hour into meters/second. * * @param kmh The value to convert. * @return in meters/second. */ public static double kmhToMs(double kmh) { return kmh / 3.6; } }