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)
|
|
|
|
|
|
|
|
|
|
|
|
namespace MapControl
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Rotated rectangle used to arrange and rotate an element with a BoundingBox.
|
|
|
|
|
|
/// </summary>
|
2022-12-01 22:48:08 +01:00
|
|
|
|
public class ViewRect
|
2020-09-01 07:34:28 +02:00
|
|
|
|
{
|
|
|
|
|
|
public ViewRect(double x, double y, double width, double height, double rotation)
|
|
|
|
|
|
{
|
|
|
|
|
|
X = x;
|
|
|
|
|
|
Y = y;
|
|
|
|
|
|
Width = width;
|
|
|
|
|
|
Height = height;
|
|
|
|
|
|
Rotation = rotation;
|
|
|
|
|
|
}
|
2021-11-13 00:28:36 +01:00
|
|
|
|
|
|
|
|
|
|
public double X { get; }
|
|
|
|
|
|
public double Y { get; }
|
|
|
|
|
|
public double Width { get; }
|
|
|
|
|
|
public double Height { get; }
|
|
|
|
|
|
public double Rotation { get; }
|
2020-09-01 07:34:28 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|