Here you can find the source of getWholeMinutes(double coordinate)
Gets the minutes component from a decimal coordinate.
Parameter | Description |
---|---|
coordinate | The decimal coordinate. |
public static int getWholeMinutes(double coordinate)
//package com.java2s; public class Main { /**/*from w w w.java2 s . com*/ * <p>Gets the minutes component from a decimal coordinate.</p> * @param coordinate The decimal coordinate. * @return The minutes. */ public static int getWholeMinutes(double coordinate) { return (int) (((coordinate - getWholeDegrees(coordinate)) * 60)); } /** * <p>Gets the integer component from a decimal coordinate.</p> * @param coordinate The decimal coordinate. * @return The degrees. */ public static int getWholeDegrees(double coordinate) { return (int) coordinate; } }