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.

14.20 Straight Real Lines ( real line )<br />

1. Definition<br />

An instance l of the data type real line is a directed straight line in the two-dimensional<br />

plane.<br />

#include < <strong>LEDA</strong>/geo/real line.h ><br />

2. Types<br />

real line :: coord type<br />

real line :: point type<br />

the coordinate type (real).<br />

the point type (real point).<br />

3. Creation<br />

real line l(const real point& p, const real point& q);<br />

introduces a variable l of type real line. l is initialized to the<br />

line passing through points p and q directed form p to q.<br />

real line l(const real segment& s);<br />

introduces a variable l of type real line. l is initialized to the<br />

line supporting segment s.<br />

real line l(const real ray& r);<br />

introduces a variable l of type real line. l is initialized to the<br />

line supporting ray r.<br />

real line l(const real point& p, const real vector& v);<br />

introduces a variable l of type real line. l is initialized to the<br />

line passing through points p and p + v.<br />

real line l;<br />

introduces a variable l of type real line. l is initialized to the<br />

line passing through the origin with direction 0.<br />

real line l(const line& l1 , int prec = 0);<br />

introduces a variable l of type real line initialized to the line<br />

l 1 . (<strong>The</strong> second argument is for compatibility with rat line.)<br />

real line l(const rat line& l1 );<br />

introduces a variable l of type real line initialized to the line<br />

l 1 .

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

Saved successfully!

Ooh no, something went wrong!