XAML-Map-Control/MapControl/Shared/CenteredBoundingBox.cs
2025-02-27 18:46:32 +01:00

19 lines
463 B
C#

using System;
namespace MapControl
{
public class CenteredBoundingBox : BoundingBox
{
public CenteredBoundingBox(Location center, double width, double height)
{
Center = center;
Width = Math.Max(width, 0d);
Height = Math.Max(height, 0d);
}
public override Location Center { get; }
public override double Width { get; }
public override double Height { get; }
}
}