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

bool<br />

r.project xz(ray& m) if the projection of r into the xz plane is not a point,<br />

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

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

r.project yz(ray& m) if the projection of r 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 r.project(const d3 point& p, const d3 point& q, const d3 point& v,<br />

d3 ray& m)<br />

if the projection of r 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 ray r.reverse( ) returns a ray starting at r.source() with direction -<br />

r.to vector().<br />

d3 ray r.translate(const vector& v)<br />

returns r translated by vector v. Precond. : v.dim( )<br />

= 3 .<br />

d3 ray<br />

r.translate(double dx, double dy, double dz)<br />

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

d3 ray r + const vector& v returns r translated by vector v.<br />

d3 ray r − const vector& v returns r translated by vector −v.<br />

d3 ray r.reflect(const d3 point& p, const d3 point& q, const d3 point& v)<br />

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

d3 ray r.reflect(const d3 point& p)<br />

returns r reflected across p.<br />

vector r.to vector( ) returns point2 ( ) − point1 ( ).

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

Saved successfully!

Ooh no, something went wrong!