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.

integer p.W( ) returns the fourth homogeneous coordinate of p.<br />

double p.XD( ) returns a floating point approximation of p.X( ).<br />

double p.YD( ) returns a floating point approximation of p.Y ( ).<br />

double p.ZD( ) returns a floating point approximation of p.Z( ).<br />

double p.WD( ) returns a floating point approximation of p.W ( ).<br />

rational p.xcoord( ) returns the x-coordinate of p.<br />

rational p.ycoord( ) returns the y-coordinate of p.<br />

rational p.zcoord( ) returns the z-coordinate of p.<br />

rational p[int i] returns the ith cartesian coordinate of p<br />

Precondition: 0 ≤ i ≤ 2.<br />

double p.xcoordD( ) returns a floating point approximation of p.xcoord( ).<br />

double p.ycoordD( ) returns a floating point approximation of p.ycoord( ).<br />

double p.zcoordD( ) returns a floating point approximation of p.zcoord( ).<br />

integer p.hcoord(int i) returns the ith homogeneous coordinate of p.<br />

Precondition: 0 ≤ i ≤ 3.<br />

rat point p.project xy( ) returns p projected into the xy-plane.<br />

rat point p.project yz( ) returns p projected into the yz-plane.<br />

rat point p.project xz( ) returns p projected into the xz-plane.<br />

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

const d3 rat point& r)<br />

returns p reflected across the plane passing through p,<br />

q and r.<br />

Precondition: p, q and r are not collinear.<br />

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

returns p reflected across point q.<br />

d3 rat point<br />

d3 rat point<br />

p.translate(const rational& dx, const rational& dy, const rational& dz)<br />

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

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

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

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

Saved successfully!

Ooh no, something went wrong!