电子围栏推送服务
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

24 linhas
521B

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace TelpoPush.Fence.Worker.Models.Fence
  5. {
  6. public class GpsPoint
  7. {
  8. public decimal Lat { get; set; }
  9. public decimal Lng { get; set; }
  10. public GpsPoint(decimal lat, decimal lng)
  11. {
  12. Lat = lat;
  13. Lng = lng;
  14. }
  15. public bool Equals(GpsPoint obj)
  16. {
  17. return Math.Abs(obj.Lat - Lat) < 0.000000001m && Math.Abs(obj.Lng - Lng) < 0.000000001m;
  18. }
  19. }
  20. }