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.

eal circle C(const circle& c, int prec = 0);<br />

real circle C(const rat circle& c);<br />

4. Operations<br />

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

circle c. (<strong>The</strong> second argument is for compatibility with<br />

rat circle.)<br />

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

circle c.<br />

real point C.center( ) returns the center of C.<br />

Precondition: <strong>The</strong> orientation of C is not 0.<br />

real C.radius( ) returns the radius of C.<br />

Precondition: <strong>The</strong> orientation of C is not 0.<br />

real C.sqr radius( ) returns the squared radius of C.<br />

Precondition: <strong>The</strong> orientation of C is not 0.<br />

real point C.point1( ) returns p 1 .<br />

real point C.point2( ) returns p 2 .<br />

real point C.point3( ) returns p 3 .<br />

bool C.is degenerate( ) returns true if the defining points are collinear.<br />

bool C.is trivial( ) returns true if C has radius zero.<br />

int C.orientation( ) returns the orientation of C.<br />

int C.side of(const real point& p)<br />

bool C.inside(const real point& p)<br />

bool C.outside(const real point& p)<br />

bool C.contains(const real point& p)<br />

returns −1, +1, or 0 if p lies right of, left of, or on<br />

C respectively.<br />

returns true iff p lies inside of C.<br />

returns true iff p lies outside of C.<br />

returns true iff p lies on C.<br />

real circle<br />

C.translate(real dx, real dy)<br />

returns C translated by vector (dx, dy).<br />

real circle C.translate(const real vector& v)<br />

returns C translated by vector v.

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

Saved successfully!

Ooh no, something went wrong!