public static double Distance(PolarPointRssiExtended pt1, PolarPointRssiExtended pt2) { return(Math.Sqrt(pt1.Pt.Distance * pt1.Pt.Distance + pt2.Pt.Distance * pt2.Pt.Distance - 2 * pt1.Pt.Distance * pt2.Pt.Distance * Math.Cos(pt1.Pt.Angle - pt2.Pt.Angle))); }
static public PointDExtended ConvertPolarToPointD(PolarPointRssiExtended point) { return(new PointDExtended(new PointD(point.Pt.Distance * Math.Cos(point.Pt.Angle), point.Pt.Distance * Math.Sin(point.Pt.Angle)), point.Color, point.Width)); }