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.

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

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

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

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

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

real 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 real point& p)<br />

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

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

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

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

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

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

real rectangle r.include(const real rectangle& r2 )<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 outside 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 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 rectangle that includes the points of<br />

r and p.<br />

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

r and r2.

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

Saved successfully!

Ooh no, something went wrong!