Пример #1
0
 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)));
 }
Пример #2
0
        //TODO POLAR + POLAR

        //static//
        public static double Distance(Polar3 a, Polar3 b)
        {
            return(Vector3.Distance(a.ToCartesian(), b.ToCartesian()));
        }