Beispiel #1
0
        new public string ToXML()
        {
            string s = xmlStartTag;

            s += "<VX>" + VX.ToString();
            s += "</VX><VY>" + VY.ToString();
            s += "</VY><VZ>" + VZ.ToString() + "</VZ>";
            s += xmlEndTag;
            return(s);
        }
Beispiel #2
0
        public override string ToString()
        {
            string stroka = "";

            stroka = n.ToString() + " ";
            foreach (double M in m)
            {
                stroka += M.ToString() + " ";
            }
            foreach (double X in x)
            {
                stroka += X.ToString() + " ";
            }
            foreach (double Y in y)
            {
                stroka += Y.ToString() + " ";
            }
            foreach (double Z in z)
            {
                stroka += Z.ToString() + " ";
            }
            foreach (double VX in vx)
            {
                stroka += VX.ToString() + " ";
            }
            foreach (double VY in vy)
            {
                stroka += VY.ToString() + " ";
            }
            foreach (double VZ in vz)
            {
                stroka += VZ.ToString() + " ";
            }
            stroka = stroka + "\n";
            return(String.Format("{0}", stroka));
        }