private PointItem DeserializePoint(string[] m) { var pointItem = new PointItem(); pointItem.Id = int.Parse(m[1]); pointItem.X = double.Parse(m[2]); pointItem.Y = double.Parse(m[3]); return(pointItem); }
public void Serialize(StringBuilder sb, PointItem point, string indent, ItemSerializeOptions options) { sb.Append(indent); sb.Append("POINT"); sb.Append(options.ModelSeparator); sb.Append(point.Id); sb.Append(options.ModelSeparator); sb.Append(point.X); sb.Append(options.ModelSeparator); sb.Append(point.Y); sb.Append(options.LineSeparator); }
public void Move(PointItem point, double x, double y) { point.X += x; point.Y += y; }