MetaDrawChord


This metafile command draws an elliptic Arc.

class MetaDrawChord : public Meta
{
 public:
  Rectangle Box;
  Point Start;
  Point End;
};

Box The bounding rectangle of the ellipse containing the arc.
Start A point that determines the arc's starting Point.
End A point that determines the arc's ending Point.

Notes

The portion of the ellipse bounded by the rectangle is drawn, subject to the starting and ending conditions.

The Chord:

Chord(Rectangle(Point(100,100),        // first Point of Rectangle
                Point(300,300)),       // second Point of Rectangle
      Point(200,350),                  // vector for starting angle 
      Point(350,200))                  // vector for ending angle

appears as depicted below (with constructs included).

The dotted lines drawn from (200,200) to (200,350) and from (200,200) to (350,200) Show how the start and end vectors are used to restrict the drawing to a sector of the ellipse. In the diagram, the rectangle containing the ellipse (of which the chord is a part) has also been drawn. The actual chord is been drawn in light gray.

See related C function DrawChord.