Fix WinUI/UWP Matrix

This commit is contained in:
ClemensFischer 2022-12-03 20:55:17 +01:00
parent 448177418e
commit c404fd2a90
2 changed files with 16 additions and 2 deletions

View file

@ -72,7 +72,7 @@ namespace MapControl
public void SetTransform(Point mapCenter, Point viewCenter, double scale, double rotation)
{
Scale = scale;
Rotation = rotation;
Rotation = ((rotation % 360d) + 360d) % 360d;
var transform = new Matrix(Scale, 0d, 0d, -Scale, -Scale * mapCenter.X, Scale * mapCenter.Y);