private static SignalColor GetColor(RxLevPoint point) { if (point.Signal >= -65 && point.Signal < 0) { return(SignalColor.Green); } else if (point.Signal >= -75 && point.Signal <= -65) { return(SignalColor.Yellow); } else { return(SignalColor.Red); } }
private static bool Equ2(RxLevPoint a, RxLevPoint b) => Dis2(a, b) <= L;
private static double Dis2(RxLevPoint a, RxLevPoint b) => Sqr(a.Lat - b.Lat) + Sqr(a.Lon - b.Lon);
private static double Cal(RxLevPoint a, RxLevPoint b) => Math.Atan2(a.Lat - b.Lat, a.Lon - b.Lon);