# latlngconv library

## Classes

Circle
Circle-base GEO algorithms. [...]
Distance
Calculates the distance between points. [...]
DistanceCalculator
DistanceHaversine
Shortcut for final Distance distance = const Distance(calculator: const Haversine());
DistanceVincenty
Shortcut for final Distance distance = const Distance(calculator: const Vincenty());
Haversine
LatLng
Coordinates in Degrees [...]
LengthUnit
Path<T extends LatLng>
Path of LatLng values [...]
Vincenty

## Constants

EARTH_RADIUS → const double
Earth radius in meter
`EQUATOR_RADIUS`
EQUATOR_RADIUS → const double
Equator radius in meter (WGS84 ellipsoid)
`6378137.0`
FLATTENING → const double
WGS84
`1 / 298.257223563`
PI → const double
`3.14159265358979324`
POLAR_RADIUS → const double
Polar radius in meter (WGS84 ellipsoid)
`6356752.314245`
X_PI → const double
`PI * 3000.0 / 180.0`

## Functions

decimal2sexagesimal(double dec)
Converts a decimal coordinate value to sexagesimal format [...]
Converts degree to radian
delta(dynamic lat, dynamic lon)
LatLngConvert(LatLng src, LatLngType fromType, LatLngType toType)
Convert latlng`src` from `fromType` to `toType`
normalizeBearing(double bearing)
Convert a bearing to be within the 0 to +360 degrees range. Compass bearing is in the rangen 0° ... 360°
OutofChina(LatLng point) bool
Tell `point` is out of china this method do a rectangle check. but the actual bound of china is not. so this gives a rough result. use this method should be cautious.
Rounds `value` to given number of `decimals`