Class Tioga::Arcs_and_Circles
In: split/Tioga/lib/Arcs_and_Circles.rb
Parent: Doc< FigureMaker

These are the methods for creating and using arcs and circles in PDF graphics.

Methods

Public Instance methods

Like adding lines from start to corner to end, but with the corner rounded with a radius equal to the minimum of the actual output distances for dx and dy.

The illustration shows in dark blue the arc that is added for the control points given in red.

Create a circle with center at (x, y) having radius r (given in x units).

Equivalent to the following: create a unit circle with center at (x, y), scale it by dx in the x direction, scale it by dy in the y direction, then rotate it counter-clockwise by angle degrees.

Calls append_circle_to_path followed by fill_and_stroke.

[Validate]