mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 14:37:01 +00:00
Update MapProjection.cs
This commit is contained in:
parent
64e6e719a1
commit
30bbbb9ce2
1 changed files with 3 additions and 1 deletions
|
|
@ -122,7 +122,9 @@ namespace MapControl
|
|||
var x = center.Value.X - width / 2d;
|
||||
var y = center.Value.Y - height / 2d;
|
||||
|
||||
// angles measured relative to horizontal and vertical axis
|
||||
// Additional rotation caused by the projection, calculated as mean value
|
||||
// of the two angles measured relative to the east and north axis.
|
||||
//
|
||||
var r1 = (Math.Atan2(dy1, dx1) * 180d / Math.PI + 180d) % 360d - 180d;
|
||||
var r2 = (Math.Atan2(-dx2, dy2) * 180d / Math.PI + 180d) % 360d - 180d;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue