Beispiel #1
0
            public override string ToStringRaw()
            {
                string string_rep = typeID + ":\n";

                string_rep += "positions:\n[";
                foreach (double element in positions)
                {
                    string_rep += " " + Convert.ToString(element);
                }
                string_rep += "]\n\n";
                string_rep += "velocities:\n[";
                foreach (double element in velocities)
                {
                    string_rep += " " + Convert.ToString(element);
                }
                string_rep += "]\n\n";
                string_rep += "accelerations:\n[";
                foreach (double element in accelerations)
                {
                    string_rep += " " + Convert.ToString(element);
                }
                string_rep += "]\n\n";
                string_rep += time_from_start.ToStringRaw() + "\n";
                return(string_rep);
            }
            public override string ToStringRaw()
            {
                string string_rep = typeID + ":\n";

                string_rep += data.ToStringRaw() + "\n";
                return(string_rep);
            }