Class GeolocationMaths
- java.lang.Object
-
- de.hybris.platform.storelocator.constants.GeolocationMaths
-
public class GeolocationMaths extends java.lang.ObjectUtility class providing useful coordinates conversions
-
-
Field Summary
Fields Modifier and Type Field Description static intSIGNIFICANT_DIGITS
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int[]decimal2DMS(double decimal)Converts decimal representation to DMS coordinate representation (degree, minute, second)static doubledms2Decimal(int[] dms)Converts DMS coordinate representation to decimalstatic doubletruncateDecimal(double decimal)
-
-
-
Field Detail
-
SIGNIFICANT_DIGITS
public static final int SIGNIFICANT_DIGITS
- See Also:
- Constant Field Values
-
-
Method Detail
-
decimal2DMS
public static int[] decimal2DMS(double decimal)
Converts decimal representation to DMS coordinate representation (degree, minute, second)- Parameters:
decimal-- Returns:
- primitive array int[]
- Throws:
GeoLocatorException
-
dms2Decimal
public static double dms2Decimal(int[] dms)
Converts DMS coordinate representation to decimal- Parameters:
dms-- Returns:
- double
- Throws:
GeoLocatorException
-
truncateDecimal
public static double truncateDecimal(double decimal)
-
-