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

12 lines
351 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
{
2025-09-15 17:46:31 +02:00
public class CenteredBoundingBox(Location center, double width, double height) : BoundingBox
{
2025-09-15 17:46:31 +02:00
public override Location Center { get; } = center;
public override double Width { get; } = Math.Max(width, 0d);
public override double Height { get; } = Math.Max(height, 0d);
}
}