2017-06-25 23:05:48 +02:00
|
|
|
|
// XAML Map Control - https://github.com/ClemensFischer/XAML-Map-Control
|
2022-01-14 20:22:56 +01:00
|
|
|
|
// © 2022 Clemens Fischer
|
2017-06-25 23:05:48 +02:00
|
|
|
|
// Licensed under the Microsoft Public License (Ms-PL)
|
|
|
|
|
|
|
2018-12-20 21:55:12 +01:00
|
|
|
|
using System;
|
|
|
|
|
|
|
2017-06-25 23:05:48 +02:00
|
|
|
|
namespace MapControl
|
|
|
|
|
|
{
|
|
|
|
|
|
public class CenteredBoundingBox : BoundingBox
|
|
|
|
|
|
{
|
|
|
|
|
|
public CenteredBoundingBox(Location center, double width, double height)
|
|
|
|
|
|
{
|
2018-12-04 00:38:54 +01:00
|
|
|
|
Center = center;
|
2022-02-22 22:12:15 +01:00
|
|
|
|
Width = Math.Max(width, 0d);
|
|
|
|
|
|
Height = Math.Max(height, 0d);
|
2017-06-25 23:05:48 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
2022-02-22 22:12:15 +01:00
|
|
|
|
public override double Width { get; protected set; }
|
|
|
|
|
|
public override double Height { get; protected set; }
|
|
|
|
|
|
public override Location Center { get; protected set; }
|
2017-06-25 23:05:48 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|