Exemple #1
0
 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;
 }
Exemple #2
0
 private static bool Equ2(RxLevPoint a, RxLevPoint b) => Dis2(a, b) <= L;
Exemple #3
0
 private static double Dis2(RxLevPoint a, RxLevPoint b) => Sqr(a.Lat - b.Lat) + Sqr(a.Lon - b.Lon);
Exemple #4
0
 private static double Cal(RxLevPoint a, RxLevPoint b) => Math.Atan2(a.Lat - b.Lat, a.Lon - b.Lon);