public static Vector3 ToCartesian(Polar3 a) { return(new Vector3(a.R * Math.Sin(a.P) * Math.Cos(a.O), a.R * Math.Sin(a.P) * Math.Sin(a.O), a.R * Math.Cos(a.P))); }
//TODO POLAR + POLAR //static// public static double Distance(Polar3 a, Polar3 b) { return(Vector3.Distance(a.ToCartesian(), b.ToCartesian())); }