mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-06 06:55:04 +00:00
Implemented LocationAnimator
This commit is contained in:
parent
3706709cfc
commit
abe3bb75f9
3 changed files with 68 additions and 21 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue