Updated BoundingBox

This commit is contained in:
Clemens 2022-02-22 22:12:15 +01:00
parent e8a34b1a9f
commit 8cdc03e411
6 changed files with 27 additions and 127 deletions

View file

@ -49,16 +49,19 @@ namespace MapControl
public virtual double Width
{
get { return East - West; }
protected set { }
}
public virtual double Height
{
get { return North - South; }
protected set { }
}
public virtual BoundingBox Clone()
public virtual Location Center
{
return new BoundingBox(South, West, North, East);
get { return new Location((South + North) / 2d, (West + East) / 2d); }
protected set { }
}
public static BoundingBox Parse(string s)