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

26 lines
669 B
C#
Raw Normal View History

2021-01-13 21:19:27 +01:00
// XAML Map Control - https://github.com/ClemensFischer/XAML-Map-Control
2024-02-03 21:01:53 +01:00
// Copyright © 2024 Clemens Fischer
2020-09-01 07:34:28 +02:00
// Licensed under the Microsoft Public License (Ms-PL)
2024-05-22 11:25:32 +02:00
#if WPF
using System.Windows;
#endif
2020-09-01 07:34:28 +02:00
namespace MapControl
{
/// <summary>
/// Rotated rectangle used to arrange and rotate an element with a BoundingBox.
/// </summary>
public readonly struct ViewRect
2020-09-01 07:34:28 +02:00
{
public ViewRect(double x, double y, double width, double height, double rotation)
{
Rect = new Rect(x, y, width, height);
2020-09-01 07:34:28 +02:00
Rotation = rotation;
}
2021-11-13 00:28:36 +01:00
public Rect Rect { get; }
2021-11-13 00:28:36 +01:00
public double Rotation { get; }
2020-09-01 07:34:28 +02:00
}
}