mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-06 06:55:04 +00:00
Version 4: Upgrade to VS 2017
This commit is contained in:
parent
2aafe32e00
commit
ec47f225b3
142 changed files with 1828 additions and 18384 deletions
40
MapControl/Shared/CenteredBoundingBox.cs
Normal file
40
MapControl/Shared/CenteredBoundingBox.cs
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
// XAML Map Control - https://github.com/ClemensFischer/XAML-Map-Control
|
||||
// © 2017 Clemens Fischer
|
||||
// Licensed under the Microsoft Public License (Ms-PL)
|
||||
|
||||
namespace MapControl
|
||||
{
|
||||
public class CenteredBoundingBox : BoundingBox
|
||||
{
|
||||
private readonly Location center;
|
||||
private readonly double width;
|
||||
private readonly double height;
|
||||
|
||||
public CenteredBoundingBox(Location center, double width, double height)
|
||||
{
|
||||
this.center = center;
|
||||
this.width = width;
|
||||
this.height = height;
|
||||
}
|
||||
|
||||
public Location Center
|
||||
{
|
||||
get { return center; }
|
||||
}
|
||||
|
||||
public override double Width
|
||||
{
|
||||
get { return width; }
|
||||
}
|
||||
|
||||
public override double Height
|
||||
{
|
||||
get { return height; }
|
||||
}
|
||||
|
||||
public override BoundingBox Clone()
|
||||
{
|
||||
return new CenteredBoundingBox(center, width, height);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue