XAML-Map-Control/MapControl/Shared/ViewRect.cs
2022-12-01 22:48:08 +01:00

28 lines
762 B
C#

// XAML Map Control - https://github.com/ClemensFischer/XAML-Map-Control
// © 2022 Clemens Fischer
// 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 class ViewRect
{
public ViewRect(double x, double y, double width, double height, double rotation)
{
X = x;
Y = y;
Width = width;
Height = height;
Rotation = rotation;
}
public double X { get; }
public double Y { get; }
public double Width { get; }
public double Height { get; }
public double Rotation { get; }
}
}