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.

TRANSFORM T (const TRANSFORM & T1 )<br />

returns the transformation T ◦ T1 .<br />

POINT<br />

T (const POINT & p) returns T (p).<br />

VECTOR T (const VECTOR& v)<br />

SEGMENT T (const SEGMENT & s)<br />

returns T (v).<br />

returns T (s).<br />

LINE T (const LINE& l) returns T (l).<br />

RAY T (const RAY & r) returns T (r).<br />

CIRCLE T (const CIRCLE& C)<br />

POLYGON T (const POLYGON & P )<br />

returns T (C).<br />

returns T (P ).<br />

GEN POLYGON T (const GEN POLYGON & P )<br />

Non-member Functions<br />

returns T (P ).<br />

In any of the function below a point can be specified to the origin by replacing it by an<br />

anonymous object of type POINT, e.g., rotation90 (POINT ( )) will generate a rotation<br />

about the origin.<br />

TRANSFORM translation(const INT TYPE & dx, const INT TYPE & dy,<br />

const INT TYPE & dw)<br />

returns the translation by the vector (dx/dw, dy/dw).<br />

TRANSFORM translation(const RAT TYPE & dx, const RAT TYPE& dy)<br />

TRANSFORM translation(const VECTOR& v)<br />

returns the translation by the vector (dx, dy).<br />

returns the translation by the vector v.<br />

TRANSFORM rotation(const POINT & q, double alpha, double eps)<br />

TRANSFORM rotation90(const POINT & q)<br />

returns the rotation about q by an angle alpha ± eps.<br />

returns the rotation about q by an angle of 90 degrees.

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

Saved successfully!

Ooh no, something went wrong!