using GpsCardGatewayPosition.Model.GatewayEntity; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace GpsCardGatewayPosition.Common { public class Bounds { public Point SW { get; set; } public Point NE { get; set; } public Bounds(Point sw, Point ne) { SW = sw; NE = ne; } public Point GetCenter() { return new Point((SW.Lng + NE.Lng) / 2, (SW.Lat + NE.Lat) / 2); } } }