using System; using System.Collections.Generic; using System.Text; namespace TelpoPush.Fence.Worker.Models.Fence { public class GpsPoint { public decimal Lat { get; set; } public decimal Lng { get; set; } public GpsPoint(decimal lat, decimal lng) { Lat = lat; Lng = lng; } public bool Equals(GpsPoint obj) { return Math.Abs(obj.Lat - Lat) < 0.000000001m && Math.Abs(obj.Lng - Lng) < 0.000000001m; } } }