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.

circle segment cs(const rat circle& c);<br />

creates an instance cs which is equal to the full circle c.<br />

Precondition: c is not degenerate.<br />

r circle segment cs(const rat point& src, const rat point& tgt);<br />

r circle segment cs(const rat segment& s);<br />

creates an instance cs which is equal to the straight line segment<br />

from src to tgt.<br />

creates an instance cs which is equal to the straight line segment s.<br />

3. Operations<br />

void cs.normalize( ) simplifies the internal representation of cs.<br />

const r circle point& cs.source( )<br />

const r circle point& cs.target( )<br />

const rat circle& cs.circle( )<br />

returns the source of cs.<br />

returns the target of cs.<br />

returns the supporting circle of cs.<br />

rat line cs.supporting line( ) returns a line containing cs.<br />

Precondition: cs is a straight line segment.<br />

rat point cs.center( ) returns the center of the supporting circle of cs.<br />

int cs.orientation( ) returns the orientation (of the supporting circle) of cs.<br />

bool cs.is trivial( ) returns true iff cs is trivial.<br />

bool cs.is degenerate( ) returns true iff cs is degenerate.<br />

bool cs.is full circle( ) returns true iff cs is a full circle.<br />

bool cs.is proper arc( ) returns true iff cs is a proper arc, i.e. neither degenerate<br />

nor a full circle.<br />

bool cs.is straight segment( )<br />

bool cs.is vertical segment( )<br />

returns true iff cs is a straight line segment.<br />

returns true iff cs is a vertical straight line segment.<br />

bool cs.is rat segment( ) returns true, if cs can be converted to rat segment.<br />

(<strong>The</strong> value false means “do not know”.)<br />

rat segment cs.to rat segment( ) converts cs to a rat segment.<br />

Precondition: is rat segment returns true.

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

Saved successfully!

Ooh no, something went wrong!