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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

14.21 Real Circles ( real circle )<br />

1. Definition<br />

An instance C of the data type real 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 defining<br />

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

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 this order<br />

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

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

2. Types<br />

real circle :: coord type<br />

real circle :: point type<br />

the coordinate type (real).<br />

the point type (real point).<br />

3. Creation<br />

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

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

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

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

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

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

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

through b.<br />

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

the trivial circle with center a.<br />

real circle C;<br />

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

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

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

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

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

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

counter-clockwise) orientation.<br />

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

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

(i.e. counter-clockwise) orientation.

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

Saved successfully!

Ooh no, something went wrong!