public void Draw(Graphics g, Pen pen, Brush brush, Font font, int offset) { var center = Center.GetDrawingPoint(scrWidth, scrHeight); var gPen = new Pen(Brushes.Green, 2); var bPen = new Pen(Brushes.Blue, 2); var mPen = new Pen(Brushes.DarkMagenta, 2); //X g.DrawLine(gPen, center, XEdge.GetDrawingPoint(scrWidth, scrHeight)); g.DrawString("X", font, brush, new Point3(XEdge.X - offset, XEdge.Y, XEdge.Z).GetDrawingPoint(scrWidth, scrHeight)); //Y g.DrawLine(bPen, YEdge.GetDrawingPoint(scrWidth, scrHeight), center); g.DrawString("Y", font, brush, new Point3(YEdge.X, YEdge.Y - offset, YEdge.Z).GetDrawingPoint(scrWidth, scrHeight)); //Z g.DrawLine(mPen, center, ZEdge.GetDrawingPoint(scrWidth, scrHeight)); g.DrawString("Z", font, brush, new Point3(ZEdge.X, ZEdge.Y, ZEdge.Z - offset).GetDrawingPoint(scrWidth, scrHeight)); }