mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-08 16:05:50 +00:00
Simplify BoundingBox
This commit is contained in:
parent
8bb2555533
commit
142e86da31
2 changed files with 11 additions and 10 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue