Esempio n. 1
0
 public void Serialize(Vertex3D vert)
 {
     writer.Write(vert.X);
     writer.Write(vert.Y);
     writer.Write(vert.Z);
 }
Esempio n. 2
0
 public void Serialize(Vertex3D vert)
 {
     NumberFormatInfo format = new NumberFormatInfo();
     format.NumberDecimalSeparator = ".";
     format.NumberGroupSeparator = ",";
     writer.WriteElementString("x", vert.X.ToString("f4", format));
     writer.WriteElementString("y", vert.Y.ToString("f4", format));
     writer.WriteElementString("z", vert.Z.ToString("f4", format));
 }