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.

int t.side of(const point& p)<br />

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

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

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

bool t.on boundary(const point& p)<br />

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

bool t.intersection(const line& l)<br />

bool t.intersection(const segment& s)<br />

returns +1 if p lies to the left of t, 0 if p lies on t and −1<br />

if p lies to the right of t.<br />

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

region of t, ON REGION if p lies on t and<br />

UNBOUNDED REGION if p lies in the unbounded region.<br />

returns true, if p lies to the left of t.<br />

returns true, if p lies to the right of t.<br />

decides whether p lies on the boundary of t.<br />

decides whether t contains p.<br />

decides whether the bounded region or the boundary of t<br />

and l intersect.<br />

decides whether the bounded region or the boundary of t<br />

and s intersect.<br />

triangle<br />

t.translate(double dx, double dy)<br />

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

triangle t.translate(const vector& v)<br />

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

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

triangle<br />

triangle<br />

t + const vector& v<br />

returns t translated by vector v.<br />

t − const vector& v<br />

returns t translated by vector −v.<br />

triangle t.rotate(const point& q, double a)<br />

returns t rotated about point q by angle a.<br />

triangle<br />

t.rotate(double alpha)<br />

returns t.rotate(t.point1(), alpha).

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

Saved successfully!

Ooh no, something went wrong!