mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
12 lines
351 B
C#
12 lines
351 B
C#
using System;
|
|
|
|
namespace MapControl
|
|
{
|
|
public class CenteredBoundingBox(Location center, double width, double height) : BoundingBox
|
|
{
|
|
public override Location Center { get; } = center;
|
|
public override double Width { get; } = Math.Max(width, 0d);
|
|
public override double Height { get; } = Math.Max(height, 0d);
|
|
}
|
|
}
|