public Line Translate(double distance, bool display = false) { if (IsVertical) { SortUpDown(); } else { SortLeftRight(); } HTuple x1, x2, y1, y2; HalconScripts.GetParallelLine(XStart, YStart, XEnd, YEnd, distance, out x1, out y1, out x2, out y2); return(new Line(x1, y1, x2, y2, display)); }