bearingFromUserToLocation static method
double
bearingFromUserToLocation(
- Position userLocation,
- Position location, {
- bool approximate = false,
Implementation
static double bearingFromUserToLocation(
Position userLocation, Position location,
{bool approximate = false}) {
double bearing = 0;
if (approximate) {
bearing = approximateBearingBetween(userLocation, location);
} else {
bearing = bearingBetween(userLocation, location);
}
return bearing;
}