mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
Version 4.12.
This commit is contained in:
parent
40305cf9c0
commit
3310f58912
|
|
@ -6,21 +6,17 @@ namespace MapControl
|
||||||
{
|
{
|
||||||
public class CenteredBoundingBox : BoundingBox
|
public class CenteredBoundingBox : BoundingBox
|
||||||
{
|
{
|
||||||
private readonly Location center;
|
|
||||||
private readonly double width;
|
private readonly double width;
|
||||||
private readonly double height;
|
private readonly double height;
|
||||||
|
|
||||||
public CenteredBoundingBox(Location center, double width, double height)
|
public CenteredBoundingBox(Location center, double width, double height)
|
||||||
{
|
{
|
||||||
this.center = center;
|
Center = center;
|
||||||
this.width = width;
|
this.width = width;
|
||||||
this.height = height;
|
this.height = height;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Location Center
|
public Location Center { get; private set; }
|
||||||
{
|
|
||||||
get { return center; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public override double Width
|
public override double Width
|
||||||
{
|
{
|
||||||
|
|
@ -34,7 +30,7 @@ namespace MapControl
|
||||||
|
|
||||||
public override BoundingBox Clone()
|
public override BoundingBox Clone()
|
||||||
{
|
{
|
||||||
return new CenteredBoundingBox(center, width, height);
|
return new CenteredBoundingBox(Center, Width, Height);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue