Version 4.12.

This commit is contained in:
ClemensF 2018-12-04 00:38:54 +01:00
parent 40305cf9c0
commit 3310f58912

View file

@ -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);
} }
} }
} }