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.

at circle<br />

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

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

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

returns C translated by vector v.<br />

rat circle C + const rat vector& v returns C translated by vector v.<br />

rat circle C − const rat vector& v returns C translated by vector −v.<br />

rat circle C.rotate90(const rat point& q, int i = 1)<br />

rat circle C.reflect(const rat point& p, const rat point& q)<br />

rat circle C.reflect(const rat point& p)<br />

returns C rotated by i × 90 degrees about q. If<br />

i > 0 the rotation is counter-clockwise otherwise<br />

it is clockwise.<br />

returns C reflected across the straight line passing<br />

through p and q.<br />

returns C reflected across point p.<br />

rat circle C.reverse( ) returns C reversed.<br />

bool<br />

C == const rat circle& D returns true if C and D are equal as oriented circles.<br />

bool equal as sets(const rat circle& C1 , const rat circle& C2 )<br />

returns true if C1 and C2 are equal as unoriented<br />

circles.<br />

bool<br />

ostream&<br />

istream&<br />

radical axis(const rat circle& C1 , const rat circle& C2 , rat line& rad axis)<br />

ostream& out ≪ const rat circle& c<br />

istream& in ≫ rat circle& c<br />

if the radical axis for C1 and C2 exists, it is assigned<br />

to rad axis and true is returned; otherwise<br />

the result is false.<br />

writes the three defining points.<br />

reads three points and assigns the circle defined<br />

by them to c.

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

Saved successfully!

Ooh no, something went wrong!