Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

26 lines
568B

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace GpsCardGatewayPosition.Model.GatewayEntity
  7. {
  8. public class Point
  9. {
  10. public decimal Lat { get; set; }
  11. public decimal Lng { get; set; }
  12. public Point(decimal lat, decimal lng)
  13. {
  14. Lat = lat;
  15. Lng = lng;
  16. }
  17. public bool Equals(Point obj)
  18. {
  19. return Math.Abs(obj.Lat - Lat) < 0.000000001m && Math.Abs(obj.Lng - Lng) < 0.000000001m;
  20. }
  21. }
  22. }