Simplify BoundingBox

This commit is contained in:
ClemensFischer 2022-12-07 22:29:08 +01:00
parent 8bb2555533
commit 142e86da31
2 changed files with 11 additions and 10 deletions

View file

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