XAML-Map-Control/MapControl/Shared/CenteredBoundingBox.cs
ClemensFischer 560f44a139 Copyright
2025-01-01 18:57:55 +01:00

23 lines
624 B
C#

// XAML Map Control - https://github.com/ClemensFischer/XAML-Map-Control
// Copyright © Clemens Fischer
// Licensed under the Microsoft Public License (Ms-PL)
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; }
}
}