public void AddVertex(T x, T y, uint cmd) { m_status = Status.Initial; if (Path.IsMoveTo(cmd)) { m_src_vertices.ModifyLast(new VertexDist <T>(x, y)); } else { if (Path.IsVertex(cmd)) { m_src_vertices.Add(new VertexDist <T>(x, y)); } else { m_closed = (uint)Path.GetCloseFlag(cmd); } } }