mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-06 06:55:04 +00:00
Added ViewRect,cs
This commit is contained in:
parent
9956e78028
commit
58ba1328c6
4 changed files with 35 additions and 26 deletions
27
MapControl/Shared/ViewRect.cs
Normal file
27
MapControl/Shared/ViewRect.cs
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
// XAML Map Control - https://github.com/ClemensFischer/XAML-Map-Control
|
||||
// © 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue