#include <Plane3D.h>
Public Methods | |
HepPlane3D (double a=0, double b=0, double c=0, double d=0) | |
Constructor from four numbers. More... | |
HepPlane3D (const HepNormal3D &n, const HepPoint3D &p) | |
Constructor from normal and point. | |
HepPlane3D (const HepPoint3D &p1, const HepPoint3D &p2, const HepPoint3D &p3) | |
Constructor from three points. | |
HepPlane3D (const HepPlane3D &plane) | |
Copy constructor. | |
~HepPlane3D () | |
Destructor. | |
HepPlane3D & | operator= (const HepPlane3D &plane) |
Assignment. | |
bool | operator== (const HepPlane3D &p) const |
Test for equality. | |
bool | operator!= (const HepPlane3D &p) const |
Test for inequality. | |
HepPlane3D & | normalize () |
Normalization. | |
double | a () const |
Returns coefficient a from the plane defining equation. | |
double | b () const |
Returns coefficient b from the plane defining equation. | |
double | c () const |
Returns coefficient c from the plane defining equation. | |
double | d () const |
Returns free member d from the plane defining equation. | |
HepNormal3D | normal () const |
Returns normal. | |
double | distance (const HepPoint3D &p) const |
Returns distance from the point. | |
HepPoint3D | point (const HepPoint3D &p) const |
Returns projection of the point to the plane. | |
HepPoint3D | point () const |
Returns projection of the origin to the plane. | |
HepPlane3D & | transform (const HepTransform3D &m) |
Transformation by HepTransform3D. | |
Related Functions | |
(Note that these are not member functions.) | |
std::::ostream & | operator<< (std::::ostream &, const HepPlane3D &) |
Output to the stream. |
|
Constructor from four numbers. The numbers are the coefficients of the equation of the plane: |