2021-01-13 21:19:27 +01:00
|
|
|
|
// XAML Map Control - https://github.com/ClemensFischer/XAML-Map-Control
|
|
|
|
|
|
// © 2021 Clemens Fischer
|
2020-09-01 07:34:28 +02:00
|
|
|
|
// Licensed under the Microsoft Public License (Ms-PL)
|
|
|
|
|
|
|
|
|
|
|
|
namespace MapControl
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Rotated rectangle used to arrange and rotate an element with a BoundingBox.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public struct ViewRect
|
|
|
|
|
|
{
|
|
|
|
|
|
public double X { get; }
|
|
|
|
|
|
public double Y { get; }
|
|
|
|
|
|
public double Width { get; }
|
|
|
|
|
|
public double Height { get; }
|
|
|
|
|
|
public double Rotation { get; }
|
|
|
|
|
|
|
|
|
|
|
|
public ViewRect(double x, double y, double width, double height, double rotation)
|
|
|
|
|
|
{
|
|
|
|
|
|
X = x;
|
|
|
|
|
|
Y = y;
|
|
|
|
|
|
Width = width;
|
|
|
|
|
|
Height = height;
|
|
|
|
|
|
Rotation = rotation;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|