31.01.2014 Views

Version 5.0 The LEDA User Manual

Version 5.0 The LEDA User Manual

Version 5.0 The LEDA User Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

14.5 Circles ( circle )<br />

1. Definition<br />

An instance C of the data type circle is an oriented circle in the plane passing through<br />

three points p 1 , p 2 , p 3 . <strong>The</strong> orientation of C is equal to the orientation of the three<br />

defining points, i.e. orientation(p 1 , p 2 , p 3 ). If |{p 1 , p 2 , p 3 }|= 1 C is the empty circle with<br />

center p 1 . If p 1 , p 2 , p 3 are collinear C is a straight line passing through p 1 , p 2 and p 3 in<br />

this order and the center of C is undefined.<br />

#include < <strong>LEDA</strong>/geo/circle.h ><br />

2. Types<br />

circle :: coord type<br />

circle :: point type<br />

the coordinate type (double).<br />

the point type (point).<br />

3. Creation<br />

circle C(const point& a, const point& b, const point& c);<br />

circle C(const point& a, const point& b);<br />

introduces a variable C of type circle. C is initialized to the<br />

oriented circle through points a, b, and c.<br />

introduces a variable C of type circle. C is initialized to<br />

the counter-clockwise oriented circle with center a passing<br />

through b.<br />

circle C(const point& a); introduces a variable C of type circle. C is initialized to the<br />

trivial circle with center a.<br />

circle C;<br />

introduces a variable C of type circle. C is initialized to the<br />

trivial circle with center (0, 0).<br />

circle C(const point& c, double r);<br />

circle C(double x, double y, double r);<br />

introduces a variable C of type circle. C is initialized to the<br />

circle with center c and radius r with positive (i.e. counterclockwise)<br />

orientation.<br />

introduces a variable C of type circle. C is initialized to<br />

the circle with center (x, y) and radius r with positive (i.e.<br />

counter-clockwise) orientation.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!