Exemple #1
0
        public PSData CalcZero(Polar a, Polar b, Polar c)
        {
            PSData data = new PSData();

            try
            {
                Polar sum = a + b + c;
                data.Amplitude = sum.Modul / 3d;
                data.Phase     = sum.Angle;
                data.Result    = 1;
            }
            catch (Exception ex)
            {
                data.Result  = -1;
                data.Message = ex.Message;
            }
            return(data);
        }
Exemple #2
0
        public PSData CalcNegative(Polar a, Polar b, Polar c)
        {
            PSData data = new PSData();

            try
            {
                Polar sum = a + b.Rotate(240) + c.Rotate(120);
                data.Amplitude = sum.Modul / 3d;
                data.Phase     = sum.Angle;
                data.Result    = 1;
            }
            catch (Exception ex)
            {
                data.Result  = -1;
                data.Message = ex.Message;
            }
            return(data);
        }