mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
19 lines
463 B
C#
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; }
|
|
}
|
|
}
|