mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-20 22:05:07 +00:00
Update ViewTransform.cs
This commit is contained in:
parent
6fd637af1e
commit
c187f323a8
1 changed files with 12 additions and 0 deletions
|
|
@ -125,6 +125,18 @@ namespace MapControl
|
||||||
y = y * transform.M22 + transform.OffsetY;
|
y = y * transform.M22 + transform.OffsetY;
|
||||||
width *= transform.M11;
|
width *= transform.M11;
|
||||||
height *= transform.M22;
|
height *= transform.M22;
|
||||||
|
|
||||||
|
if (width < 0d)
|
||||||
|
{
|
||||||
|
width = -width;
|
||||||
|
x -= width;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (height < 0d)
|
||||||
|
{
|
||||||
|
height = -height;
|
||||||
|
y -= height;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue