public void Draw(Graphics g, ScreenConverter sc) { PointF location = sc.IJ(Position); SolidBrush br = new SolidBrush(Cl); g.FillEllipse(br, location.X, location.Y, sc.LengthR2Sx(2 * R), sc.LengthR2Sx(2 * R)); }
public void DrawAll(Graphics g, ScreenConverter sc) { foreach (SpaceObj o in Space) { g.DrawEllipse(myPen, sc.II(o.Fulcrum.X - o.Orbit.A), sc.JJ(o.Fulcrum.Y + o.Orbit.B), sc.LengthR2Sx(o.Orbit.A * 2), sc.LengthR2Sy(o.Orbit.B * 2)); o.Draw(g, sc); } }