Esempio n. 1
0
        /// <summary>
        /// Привести к строке
        /// </summary>
        /// <returns></returns>
        new public string ToString()
        {
            string str = "";

            if (X0 != null)
            {
                str += "\tX0: " + X0.ToString().Replace("\t", "\t\t");
            }
            if (P != null)
            {
                str += "\tP: " + P.ToString().Replace("\t", "\t\t");
            }
            if (Alfa != null)
            {
                str += "\tAlfa: " + Alfa.ToString().Replace("\t", "\t\t");
            }
            str += "\tH: " + H + ";\n";
            if (Y != null)
            {
                str += "\tFunction: " + Y.ToString().Replace("\t", "\t\t") + ";\n";
            }
            return(str);
        }
Esempio n. 2
0
 public override string ToString()
 {
     return("Alfa : ( " + Alfa.ToString() + "), Beta : (" + Beta.ToString() + "), Center : (" + Center.ToString() + ")");
 }