public void Curve3(T x_to, T y_to) { T x0; T y0; if (Path.IsVertex(m_vertices.LastVertex(out x0, out y0))) { T x_ctrl; T y_ctrl; uint cmd = m_vertices.PrevVertex(out x_ctrl, out y_ctrl); if (Path.IsCurve(cmd)) { x_ctrl = x0.Add(x0).Subtract(x_ctrl); y_ctrl = y0.Add(y0).Subtract(y_ctrl); } else { x_ctrl = x0; y_ctrl = y0; } Curve3(x_ctrl, y_ctrl, x_to, y_to); } }