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.

segment s.project xy( ) returns the projection into the xy plane.<br />

segment s.project xz( ) returns the projection into the xz plane.<br />

segment s.project yz( ) returns the projection into the yz plane.<br />

d3 segment s.project(const d3 point& p, const d3 point& q, const d3 point& v)<br />

returns s projected into the plane through (p, q, v).<br />

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

d3 segment s.reflect(const d3 point& p)<br />

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

returns s reflected across point p.<br />

d3 segment s.reverse( ) returns s reversed.<br />

vector s.to vector( ) returns s.target( ) − s.source( ).<br />

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

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

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

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

they intersect in a single point, the point is assigned<br />

to p and the result is true, otherwise the result is false<br />

bool s.intersection of lines(const d3 segment& t, d3 point& p)<br />

bool s.is trivial( ) returns true if s is trivial.<br />

If line(s) and line(t) intersect in a single point this<br />

point is assigned to p and the result is true, otherwise<br />

the result is false.<br />

double s.sqr length( ) returns the square of the length of s.<br />

double s.length( ) returns the length of s.<br />

d3 segment s.translate(const vector& v)<br />

returns s translated by vector v.<br />

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

d3 segment<br />

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

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

d3 segment s + const vector& v returns s translated by vector v.<br />

d3 segment s − const vector& v returns s translated by vector −v.

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

Saved successfully!

Ooh no, something went wrong!