void DrawPointMarkers(Graphics g) { float width = 20; // Drawing origin position box g.DrawRectangle(Pens.Black, startMarker.Position.fX - (width / 2), startMarker.Position.fY - (width / 2), width, width); // Drawing aim position box g.DrawRectangle(Pens.Red, endMarker.Position.fX - (width / 2), endMarker.Position.fY - (width / 2), width, width); PointD rightPoint = new PointD(endMarker.Position.X, startMarker.Position.Y); // Drawing right position box g.DrawRectangle(Pens.Orange, rightPoint.fX - (width / 2), rightPoint.fY - (width / 2), width, width); // Drawing lines between boxes g.DrawLine(Pens.Green, startMarker.Position.ToPointF(), endMarker.Position.ToPointF()); // hyp g.DrawLine(Pens.Blue, startMarker.Position.ToPointF(), rightPoint.ToPointF()); // adj g.DrawLine(Pens.Orange, endMarker.Position.ToPointF(), rightPoint.ToPointF()); // opp }
void DrawPointMarkers(Graphics g) { float width = 20; // drawing origin position box g.DrawRectangle(Pens.Black, originPos.fX - (width / 2), originPos.fY - (width / 2), width, width); // drawing aim position box g.DrawRectangle(Pens.Red, aimPos.fX - (width / 2), aimPos.fY - (width / 2), width, width); // drawing right position box g.DrawRectangle(Pens.Orange, rightPos.fX - (width / 2), rightPos.fY - (width / 2), width, width); // drawing endPoint box //g.DrawRectangle(Pens.Purple, endPoint.fX - (width / 2), endPoint.fY - (width / 2), width, width); // endPos g.DrawLine(Pens.Green, originPos.ToPointF(), aimPos.ToPointF()); // hyp g.DrawLine(Pens.Blue, originPos.ToPointF(), rightPos.ToPointF()); // adj g.DrawLine(Pens.Orange, aimPos.ToPointF(), rightPos.ToPointF()); // opp //Pen p = new Pen(Brushes.Black, 3); //g.DrawLine(p, originPos.ToPointF(), endPoint.ToPointF()); //p.Dispose(); }