public void Highlight(IPaint screen) { NormPoint a = new NormPoint(); NormPoint b = new NormPoint(); a.UpdateCoord(EndCoord.X, BeginCoord.Y); b.UpdateCoord(BeginCoord.X, EndCoord.Y); screen.drawhighlight(new List <NormPoint> { BeginCoord, a, BeginCoord, b, b, EndCoord, EndCoord, a }); }
public void Highlight(IPaint screen) { NormPoint a = new NormPoint(); NormPoint b = new NormPoint(); NormPoint c = new NormPoint(); NormPoint d = new NormPoint(); a.UpdateCoord(BeginCoord.X, BeginCoord.Y); b.UpdateCoord(Node3.X, Node3.Y); c.UpdateCoord(EndCoord.X, EndCoord.Y); d.UpdateCoord(Node4.X, Node4.Y); screen.drawhighlight(new List <NormPoint> { a, b, b, c, c, d, d, a }); }
public void Highlight(IPaint screen) { NormPoint a = new NormPoint(); NormPoint b = new NormPoint(); NormPoint c = new NormPoint(); NormPoint d = new NormPoint(); a.UpdateCoord(BeginCoord.X + 0.001, BeginCoord.Y + 0.01 + LineThick / 200); b.UpdateCoord(EndCoord.X + 0.001, EndCoord.Y + 0.01 + LineThick / 200); c.UpdateCoord(BeginCoord.X - 0.01, BeginCoord.Y - 0.001 + LineThick / 200); d.UpdateCoord(EndCoord.X - 0.01, EndCoord.Y - 0.001 + LineThick / 200); screen.drawhighlight(new List <NormPoint> { a, b, c, d }); }
public void Highlight(IPaint screen) { NormPoint a = new NormPoint(); NormPoint b = new NormPoint(); NormPoint c = new NormPoint(); NormPoint d = new NormPoint(); double CX = (BeginCoord.X + EndCoord.X) / 2; double CY = (BeginCoord.Y + EndCoord.Y) / 2; a.UpdateCoord(CX + (BeginCoord.X - CX) * 1.1, CY + (BeginCoord.Y - CY) * 1.1); d.UpdateCoord(CX + (Node4.X - CX) * 1.1, CY + (Node4.Y - CY) * 1.1); c.UpdateCoord(CX + (EndCoord.X - CX) * 1.1, CY + (EndCoord.Y - CY) * 1.1); b.UpdateCoord(CX + (Node3.X - CX) * 1.1, CY + (Node3.Y - CY) * 1.1); screen.drawhighlight(new List <NormPoint> { a, b, b, c, c, d, d, a }); }