12.3.9. Circle

Creates a circle. Internally, however, is treated as an ellipse. In fact, if a tuple for radius is given, it creates an ellipse. If three radii are given, then a triangle-egg

12.3.9.1. Attributes

  • radius : radius of the circle. A vector can be given
  • diameter: diameter of the circle. A vector can be given
  • rotate: sets the starting angle

12.3.9.2. functions

  • chord <angle1> <angle2>: returns the chord between those two angles
  • point(u,v) : returns a point in the circle
  • axes : Circles have axes and can be shown. Just set the ..show attribute to true or the ..hidden attribute to false.

12.3.9.3. application notes:

12.3.9.4. Examples:

(circle.1)::
circle c: .radii 3 4 5cm
(circle.2)::
circle d: .radii 4 5 6 cm print d.area