您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

1234567891011121314151617181920212223242526
  1. using GpsCardGatewayPosition.Model.GatewayEntity;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace GpsCardGatewayPosition.Common
  8. {
  9. public class Bounds
  10. {
  11. public Point SW { get; set; }
  12. public Point NE { get; set; }
  13. public Bounds(Point sw, Point ne)
  14. {
  15. SW = sw;
  16. NE = ne;
  17. }
  18. public Point GetCenter()
  19. {
  20. return new Point((SW.Lng + NE.Lng) / 2, (SW.Lat + NE.Lat) / 2);
  21. }
  22. }
  23. }