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.

ool l.project yz(rat line& m)<br />

if the projection of l into the yz plane is not a point,<br />

the function returns true and assignes the projection<br />

to m. Otherwise false is returned.<br />

bool l.project(const d3 rat point& p, const d3 rat point& q,<br />

const d3 rat point& v, d3 rat line& m)<br />

if the projection of l into the plane through (p, q, v)<br />

is not a point, the function returns true and assignes<br />

the projection to m. Otherwise false is returned.<br />

d3 rat line<br />

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

returns l translated by vector<br />

(dx/dw, dy/dw, dz/dw).<br />

d3 rat line l.translate(rat vector v)<br />

returns l translated by v.<br />

Precond. : v.dim( ) = 3.<br />

d3 rat line<br />

l + const rat vector& v<br />

returns l translated by vector v.<br />

d3 rat line<br />

l − const rat vector& v<br />

returns l translated by vector −v.<br />

d3 rat line l.reflect(const d3 rat point& p, const d3 rat point& q,<br />

const d3 rat point& v)<br />

returns l reflected across the plane through (p, q, v).<br />

d3 rat line l.reflect(const d3 rat point& p)<br />

returns l reflected across point p.<br />

d3 rat line l.reverse( ) returns l reversed.<br />

rat vector l.to vector( ) returns point2 ( ) − point1 ( ).<br />

bool l.intersection(const d3 rat segment& s)<br />

decides, whether l and s intersect in a single point.<br />

bool l.intersection(const d3 rat segment& s, d3 rat point& p)<br />

bool l.intersection(const d3 rat line& m)<br />

decides, whether l and s intersect in a single point. If<br />

so, the point of intersection is assigned to p.<br />

decides, whether l and m intersect in a single point.

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

Saved successfully!

Ooh no, something went wrong!