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.

16.5 Planes ( d3 plane )<br />

1. Definition<br />

An instance P of the data type d3 plane is an oriented plane in the three-dimensional<br />

space R 3 . It can be defined by a tripel (a,b,c) of non-collinear points or a single point a<br />

and a normal vector v.<br />

#include < <strong>LEDA</strong>/geo/d3 plane.h ><br />

2. Creation<br />

d3 plane p;<br />

introduces a variable p of type d3 plane initialized to the xy-plane.<br />

d3 plane p(const d3 point& a, const d3 point& b, const d3 point& c);<br />

introduces a variable p of type d3 plane initialized to the plane<br />

through (a, b, c).<br />

Precondition: a, b, and c are not collinear.<br />

d3 plane p(const d3 point& a, const vector& v);<br />

introduces a variable p of type d3 plane initialized to the plane that<br />

contains a with normal vector v.<br />

Precondition: v.dim( ) = 3 and v.length( ) > 0.<br />

d3 plane p(const d3 point& a, const d3 point& b);<br />

introduces a variable p of type d3 plane initialized to the plane that<br />

contains a with normal vector b − a.<br />

3. Operations<br />

d3 point p.point1( ) returns the first point of p.<br />

d3 point p.point2( ) returns the second point of p.<br />

d3 point p.point3( ) returns the third point of p.<br />

double p.A( ) returns the A parameter of the plane equation.<br />

double p.B( ) returns the B parameter of the plane equation.<br />

double p.C( ) returns the C parameter of the plane equation.<br />

double p.D( ) returns the D parameter of the plane equation.<br />

vector p.normal( ) returns a normal vector of p.

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

Saved successfully!

Ooh no, something went wrong!