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

19 lines
463 B
C#
Raw Normal View History

2025-02-27 18:46:32 +01:00
using System;
2018-12-20 21:55:12 +01:00
namespace MapControl
{
public class CenteredBoundingBox : BoundingBox
{
2024-08-29 21:35:58 +02:00
public CenteredBoundingBox(Location center, double width, double height)
{
2024-08-29 21:35:58 +02:00
Center = center;
Width = Math.Max(width, 0d);
Height = Math.Max(height, 0d);
}
2024-08-29 23:56:29 +02:00
public override Location Center { get; }
2024-08-29 21:35:58 +02:00
public override double Width { get; }
public override double Height { get; }
}
}