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.

list r.vertices( )<br />

returns the vertices of r in counterclockwise order<br />

starting from the lower left point.<br />

rational r.xmin( ) returns the minimal x-coordinate of r.<br />

rational r.xmax( ) returns the maximal x-coordinate of r.<br />

rational r.ymin( ) returns the minimal y-coordinate of r.<br />

rational r.ymax( ) returns the maximal y-coordinate of r.<br />

rational r.width( ) returns the width of r.<br />

rational r.height( ) returns the height of r.<br />

bool r.is degenerate( ) returns true, if r degenerates to a segment or point<br />

(the 4 corners are collinear), false otherwise.<br />

bool r.is point( ) returns true, if r degenerates to a point.<br />

bool r.is segment( ) returns true, if r degenerates to a segment.<br />

int r.cs code(const rat point& p)<br />

bool r.inside(const rat point& p)<br />

bool r.inside or contains(const rat point& p)<br />

bool r.outside(const rat point& p)<br />

bool r.contains(const rat point& p)<br />

region kind r.region of(const rat point& p)<br />

rat rectangle r.include(const rat point& p)<br />

returns the code for Cohen-Sutherland algorithm.<br />

returns true, if p is inside of r, false otherwise.<br />

returns true, if p is inside of r or on the border,<br />

false otherwise.<br />

returns true, if p is outside of r, false otherwise.<br />

returns true, if p is on the border of r, false otherwise.<br />

returns BOUNDED REGION if p lies in the<br />

bounded region of r, returns ON REGION if p lies<br />

on r, and returns UNBOUNDED REGION if p lies<br />

in the unbounded region.<br />

returns a new rat rectangle that includes the points<br />

of r and p.

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

Saved successfully!

Ooh no, something went wrong!