XAML-Map-Control/MapControl/Shared/ViewRect.cs

28 lines
759 B
C#
Raw Normal View History

2020-09-01 07:34:28 +02:00
// XAML Map Control - https://github.com/ClemensFischer/XAML-Map-Control
// <20> 2020 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 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;
}
}
}