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.

d3 rat point p.translate(const rat vector& v)<br />

returns p + v, i.e., p translated by vector v<br />

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

d3 rat point<br />

p + const rat vector& v<br />

returns p translated by vector v<br />

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

d3 rat point<br />

p − const rat vector& v<br />

returns p translated by vector −v<br />

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

rational p.sqr dist(const d3 rat point& q)<br />

returns the squared distance between p and q.<br />

rational p.xdist(const d3 rat point& q)<br />

returns the x-distance between p and q.<br />

rational p.ydist(const d3 rat point& q)<br />

returns the y-distance between p and q.<br />

rational p.zdist(const d3 rat point& q)<br />

returns the z-distance between p and q.<br />

rat vector<br />

p − const d3 rat point& q<br />

returns the difference vector of the coordinates.<br />

ostream&<br />

ostream& O ≪ const d3 rat point& p<br />

writes the homogeneous coordinates (x, y, z, w) of p to<br />

output stream O.<br />

istream&<br />

istream& I ≫ d3 rat point& p<br />

reads the homogeneous coordinates (x, y, z, w) of p<br />

from input stream I.<br />

Non-Member Functions

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

Saved successfully!

Ooh no, something went wrong!