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.

ational s.dy( ) returns ycoord2 ( ) − ycoord1 ( ).<br />

rational s.dz( ) returns zcoord2( ) − zcoord1( ).<br />

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

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

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

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

const d3 rat point& v)<br />

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

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

const d3 rat point& v)<br />

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

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

returns s reflected across point p.<br />

d3 rat segment s.reverse( )<br />

returns s reversed.<br />

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

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

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

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

decides, whether s and t intersect. If they intersect<br />

in a single point, the point is assigned to p<br />

bool s.intersection of lines(const d3 rat segment& t, d3 rat 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 />

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

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

returns s translated by vector v.<br />

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

d3 rat segment s.translate(rational dx, rational dy, rational dz)<br />

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

d3 rat segment s.translate(integer dx, integer dy, integer dz, integer dw)<br />

returns s translated by vector (dx/dw, dy/dw, dz/w).

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

Saved successfully!

Ooh no, something went wrong!