Implemented LocationAnimator

This commit is contained in:
ClemensFischer 2024-05-21 00:00:30 +02:00
parent 3706709cfc
commit abe3bb75f9
3 changed files with 68 additions and 21 deletions

View file

@ -10,7 +10,9 @@ namespace MapControl
{
public override Location Interpolate(double progress, Location oldValue, Location newValue)
{
throw new System.NotImplementedException();
return new Location(
(1d - progress) * oldValue.Latitude + progress * newValue.Latitude,
(1d - progress) * oldValue.Longitude + progress * newValue.Longitude);
}
}
}