You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 satır
561B

  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. }