CLHEP VERSION Reference Documentation
CLHEP Home Page CLHEP Documentation CLHEP Bug Reports |
#include <Plane3D.h>
Public Member Functions | |
Plane3D () | |
Plane3D (T a1, T b1, T c1, T d1) | |
Plane3D (const Normal3D< T > &n, const Point3D< T > &p) | |
Plane3D (const Point3D< T > &p1, const Point3D< T > &p2, const Point3D< T > &p3) | |
Plane3D (const Plane3D< float > &p) | |
~Plane3D () | |
Plane3D< T > & | operator= (const Plane3D< T > &p) |
T | a () const |
T | b () const |
T | c () const |
T | d () const |
Normal3D< T > | normal () const |
Plane3D< T > & | normalize () |
T | distance (const Point3D< T > &p) const |
Point3D< T > | point (const Point3D< T > &p) const |
Point3D< T > | point () const |
bool | operator== (const Plane3D< T > &p) const |
bool | operator!= (const Plane3D< T > &p) const |
Plane3D< T > & | transform (const Transform3D &m) |
Plane3D () | |
Plane3D (T a1, T b1, T c1, T d1) | |
Plane3D (const Normal3D< T > &n, const Point3D< T > &p) | |
Plane3D (const Point3D< T > &p1, const Point3D< T > &p2, const Point3D< T > &p3) | |
Plane3D (const Plane3D< float > &p) | |
~Plane3D () | |
Plane3D< T > & | operator= (const Plane3D< T > &p) |
T | a () const |
T | b () const |
T | c () const |
T | d () const |
Normal3D< T > | normal () const |
Plane3D< T > & | normalize () |
T | distance (const Point3D< T > &p) const |
Point3D< T > | point (const Point3D< T > &p) const |
Point3D< T > | point () const |
bool | operator== (const Plane3D< T > &p) const |
bool | operator!= (const Plane3D< T > &p) const |
Plane3D< T > & | transform (const Transform3D &m) |
Protected Attributes | |
T | a_ |
T | b_ |
T | c_ |
T | d_ |
Related Functions | |
(Note that these are not member functions.) | |
std::ostream & | operator<< (std::ostream &os, const Plane3D< float > &p) |
std::ostream & | operator<< (std::ostream &os, const Plane3D< double > &p) |
std::ostream & | operator<< (std::ostream &os, const Plane3D< float > &p) |
std::ostream & | operator<< (std::ostream &os, const Plane3D< double > &p) |
Template class for geometrical plane in 3D.
Definition at line 30 of file CLHEP/Geometry/Plane3D.h.
|
inline |
Default constructor - creates plane z=0.
Definition at line 37 of file CLHEP/Geometry/Plane3D.h.
|
inline |
Constructor from four numbers - creates plane a*x+b*y+c*z+d=0.
Definition at line 41 of file CLHEP/Geometry/Plane3D.h.
|
inline |
Constructor from normal and point.
Definition at line 45 of file CLHEP/Geometry/Plane3D.h.
|
inline |
Constructor from three points.
Definition at line 50 of file CLHEP/Geometry/Plane3D.h.
References HepGeom::Plane3D< T >::a_, HepGeom::Plane3D< T >::b_, HepGeom::Plane3D< T >::c_, HepGeom::Plane3D< T >::d_, CLHEP::detail::n, HepGeom::BasicVector3D< T >::x(), HepGeom::BasicVector3D< T >::y(), and HepGeom::BasicVector3D< T >::z().
|
inline |
Copy constructor. Plane3D<double> has two constructors: from Plane3D<double> (provided by compiler) and from Plane3D<float> (defined in this file). Plane3D<float> has only the last one.
Definition at line 63 of file CLHEP/Geometry/Plane3D.h.
|
inline |
Destructor.
Definition at line 68 of file CLHEP/Geometry/Plane3D.h.
|
inline |
Default constructor - creates plane z=0.
Definition at line 37 of file Geometry/Plane3D.h.
|
inline |
Constructor from four numbers - creates plane a*x+b*y+c*z+d=0.
Definition at line 41 of file Geometry/Plane3D.h.
|
inline |
Constructor from normal and point.
Definition at line 45 of file Geometry/Plane3D.h.
|
inline |
Constructor from three points.
Definition at line 50 of file Geometry/Plane3D.h.
References HepGeom::Plane3D< T >::a_, HepGeom::Plane3D< T >::b_, HepGeom::Plane3D< T >::c_, HepGeom::Plane3D< T >::d_, CLHEP::detail::n, HepGeom::BasicVector3D< T >::x(), HepGeom::BasicVector3D< T >::y(), and HepGeom::BasicVector3D< T >::z().
|
inline |
Copy constructor. Plane3D<double> has two constructors: from Plane3D<double> (provided by compiler) and from Plane3D<float> (defined in this file). Plane3D<float> has only the last one.
Definition at line 63 of file Geometry/Plane3D.h.
|
inline |
Destructor.
Definition at line 68 of file Geometry/Plane3D.h.
|
inline |
Returns the a-coefficient in the plane equation: a*x+b*y+c*z+d=0.
Definition at line 78 of file CLHEP/Geometry/Plane3D.h.
References HepGeom::Plane3D< T >::a_.
Referenced by HepGeom::Plane3D< T >::distance(), HepGeom::Plane3D< T >::operator!=(), HepGeom::Plane3D< T >::operator==(), and HepGeom::Plane3D< T >::point().
|
inline |
Returns the a-coefficient in the plane equation: a*x+b*y+c*z+d=0.
Definition at line 78 of file Geometry/Plane3D.h.
References HepGeom::Plane3D< T >::a_.
|
inline |
Returns the b-coefficient in the plane equation: a*x+b*y+c*z+d=0.
Definition at line 81 of file Geometry/Plane3D.h.
References HepGeom::Plane3D< T >::b_.
|
inline |
Returns the b-coefficient in the plane equation: a*x+b*y+c*z+d=0.
Definition at line 81 of file CLHEP/Geometry/Plane3D.h.
References HepGeom::Plane3D< T >::b_.
Referenced by HepGeom::Plane3D< T >::distance(), HepGeom::Plane3D< T >::operator!=(), HepGeom::Plane3D< T >::operator==(), and HepGeom::Plane3D< T >::point().
|
inline |
Returns the c-coefficient in the plane equation: a*x+b*y+c*z+d=0.
Definition at line 84 of file CLHEP/Geometry/Plane3D.h.
References HepGeom::Plane3D< T >::c_.
Referenced by HepGeom::Plane3D< T >::distance(), HepGeom::Plane3D< T >::operator!=(), HepGeom::Plane3D< T >::operator==(), and HepGeom::Plane3D< T >::point().
|
inline |
Returns the c-coefficient in the plane equation: a*x+b*y+c*z+d=0.
Definition at line 84 of file Geometry/Plane3D.h.
References HepGeom::Plane3D< T >::c_.
|
inline |
Returns the free member of the plane equation: a*x+b*y+c*z+d=0.
Definition at line 87 of file Geometry/Plane3D.h.
References HepGeom::Plane3D< T >::d_.
|
inline |
Returns the free member of the plane equation: a*x+b*y+c*z+d=0.
Definition at line 87 of file CLHEP/Geometry/Plane3D.h.
References HepGeom::Plane3D< T >::d_.
Referenced by HepGeom::Plane3D< T >::distance(), HepGeom::Plane3D< T >::operator!=(), HepGeom::Plane3D< T >::operator==(), and HepGeom::Plane3D< T >::point().
|
inline |
Returns distance to the point.
Definition at line 103 of file CLHEP/Geometry/Plane3D.h.
References HepGeom::Plane3D< T >::a(), HepGeom::Plane3D< T >::b(), HepGeom::Plane3D< T >::c(), HepGeom::Plane3D< T >::d(), HepGeom::BasicVector3D< T >::x(), HepGeom::BasicVector3D< T >::y(), and HepGeom::BasicVector3D< T >::z().
Referenced by HepGeom::Plane3D< T >::point().
|
inline |
Returns distance to the point.
Definition at line 103 of file Geometry/Plane3D.h.
References HepGeom::Plane3D< T >::a(), HepGeom::Plane3D< T >::b(), HepGeom::Plane3D< T >::c(), HepGeom::Plane3D< T >::d(), HepGeom::BasicVector3D< T >::x(), HepGeom::BasicVector3D< T >::y(), and HepGeom::BasicVector3D< T >::z().
|
inline |
Returns normal.
Definition at line 91 of file Geometry/Plane3D.h.
References HepGeom::Plane3D< T >::a_, HepGeom::Plane3D< T >::b_, and HepGeom::Plane3D< T >::c_.
|
inline |
Returns normal.
Definition at line 91 of file CLHEP/Geometry/Plane3D.h.
References HepGeom::Plane3D< T >::a_, HepGeom::Plane3D< T >::b_, and HepGeom::Plane3D< T >::c_.
Referenced by HepGeom::Plane3D< T >::transform().
|
inline |
Normalization.
Definition at line 95 of file Geometry/Plane3D.h.
References HepGeom::Plane3D< T >::a_, HepGeom::Plane3D< T >::b_, HepGeom::Plane3D< T >::c_, and HepGeom::Plane3D< T >::d_.
|
inline |
Normalization.
Definition at line 95 of file CLHEP/Geometry/Plane3D.h.
References HepGeom::Plane3D< T >::a_, HepGeom::Plane3D< T >::b_, HepGeom::Plane3D< T >::c_, and HepGeom::Plane3D< T >::d_.
|
inline |
Test for inequality.
Definition at line 129 of file Geometry/Plane3D.h.
References HepGeom::Plane3D< T >::a(), HepGeom::Plane3D< T >::b(), HepGeom::Plane3D< T >::c(), and HepGeom::Plane3D< T >::d().
|
inline |
Test for inequality.
Definition at line 129 of file CLHEP/Geometry/Plane3D.h.
References HepGeom::Plane3D< T >::a(), HepGeom::Plane3D< T >::b(), HepGeom::Plane3D< T >::c(), and HepGeom::Plane3D< T >::d().
|
inline |
Assignment.
Definition at line 72 of file CLHEP/Geometry/Plane3D.h.
References HepGeom::Plane3D< T >::a_, HepGeom::Plane3D< T >::b_, HepGeom::Plane3D< T >::c_, and HepGeom::Plane3D< T >::d_.
|
inline |
Assignment.
Definition at line 72 of file Geometry/Plane3D.h.
References HepGeom::Plane3D< T >::a_, HepGeom::Plane3D< T >::b_, HepGeom::Plane3D< T >::c_, and HepGeom::Plane3D< T >::d_.
|
inline |
Test for equality.
Definition at line 123 of file CLHEP/Geometry/Plane3D.h.
References HepGeom::Plane3D< T >::a(), HepGeom::Plane3D< T >::b(), HepGeom::Plane3D< T >::c(), and HepGeom::Plane3D< T >::d().
|
inline |
Test for equality.
Definition at line 123 of file Geometry/Plane3D.h.
References HepGeom::Plane3D< T >::a(), HepGeom::Plane3D< T >::b(), HepGeom::Plane3D< T >::c(), and HepGeom::Plane3D< T >::d().
|
inline |
Returns projection of the point to the plane.
Definition at line 109 of file CLHEP/Geometry/Plane3D.h.
References HepGeom::Plane3D< T >::a(), HepGeom::Plane3D< T >::b(), HepGeom::Plane3D< T >::c(), HepGeom::Plane3D< T >::distance(), HepGeom::BasicVector3D< T >::x(), HepGeom::BasicVector3D< T >::y(), and HepGeom::BasicVector3D< T >::z().
|
inline |
Returns projection of the point to the plane.
Definition at line 109 of file Geometry/Plane3D.h.
References HepGeom::Plane3D< T >::a(), HepGeom::Plane3D< T >::b(), HepGeom::Plane3D< T >::c(), HepGeom::Plane3D< T >::distance(), HepGeom::BasicVector3D< T >::x(), HepGeom::BasicVector3D< T >::y(), and HepGeom::BasicVector3D< T >::z().
|
inline |
Returns projection of the origin to the plane.
Definition at line 116 of file CLHEP/Geometry/Plane3D.h.
References HepGeom::Plane3D< T >::a(), HepGeom::Plane3D< T >::b(), HepGeom::Plane3D< T >::c(), and HepGeom::Plane3D< T >::d().
Referenced by HepGeom::Plane3D< T >::transform().
|
inline |
Returns projection of the origin to the plane.
Definition at line 116 of file Geometry/Plane3D.h.
References HepGeom::Plane3D< T >::a(), HepGeom::Plane3D< T >::b(), HepGeom::Plane3D< T >::c(), and HepGeom::Plane3D< T >::d().
|
inline |
Transformation by Transform3D.
Definition at line 135 of file CLHEP/Geometry/Plane3D.h.
References HepGeom::Plane3D< T >::a_, HepGeom::Plane3D< T >::b_, HepGeom::Plane3D< T >::c_, HepGeom::Plane3D< T >::d_, CLHEP::detail::n, HepGeom::Plane3D< T >::normal(), HepGeom::Plane3D< T >::point(), HepGeom::BasicVector3D< T >::x(), HepGeom::BasicVector3D< T >::y(), and HepGeom::BasicVector3D< T >::z().
|
inline |
Transformation by Transform3D.
Definition at line 135 of file Geometry/Plane3D.h.
References HepGeom::Plane3D< T >::a_, HepGeom::Plane3D< T >::b_, HepGeom::Plane3D< T >::c_, HepGeom::Plane3D< T >::d_, CLHEP::detail::n, HepGeom::Plane3D< T >::normal(), HepGeom::Plane3D< T >::point(), HepGeom::BasicVector3D< T >::x(), HepGeom::BasicVector3D< T >::y(), and HepGeom::BasicVector3D< T >::z().
|
related |
Output to the stream.
Definition at line 23 of file Plane3D.cc.
|
related |
Output to the stream.
Definition at line 23 of file Plane3D.cc.
|
related |
Output to the stream.
Definition at line 30 of file Plane3D.cc.
|
related |
Output to the stream.
Definition at line 30 of file Plane3D.cc.
|
protected |
Definition at line 32 of file CLHEP/Geometry/Plane3D.h.
Referenced by HepGeom::Plane3D< T >::a(), HepGeom::Plane3D< T >::normal(), HepGeom::Plane3D< T >::normalize(), HepGeom::Plane3D< T >::operator=(), HepGeom::Plane3D< T >::Plane3D(), and HepGeom::Plane3D< T >::transform().
|
protected |
Definition at line 32 of file CLHEP/Geometry/Plane3D.h.
Referenced by HepGeom::Plane3D< T >::b(), HepGeom::Plane3D< T >::normal(), HepGeom::Plane3D< T >::normalize(), HepGeom::Plane3D< T >::operator=(), HepGeom::Plane3D< T >::Plane3D(), and HepGeom::Plane3D< T >::transform().
|
protected |
Definition at line 32 of file CLHEP/Geometry/Plane3D.h.
Referenced by HepGeom::Plane3D< T >::c(), HepGeom::Plane3D< T >::normal(), HepGeom::Plane3D< T >::normalize(), HepGeom::Plane3D< T >::operator=(), HepGeom::Plane3D< T >::Plane3D(), and HepGeom::Plane3D< T >::transform().
|
protected |
Definition at line 32 of file CLHEP/Geometry/Plane3D.h.
Referenced by HepGeom::Plane3D< T >::d(), HepGeom::Plane3D< T >::normalize(), HepGeom::Plane3D< T >::operator=(), HepGeom::Plane3D< T >::Plane3D(), and HepGeom::Plane3D< T >::transform().