CLHEP VERSION Reference Documentation
   
CLHEP Home Page     CLHEP Documentation     CLHEP Bug Reports

Public Member Functions | Protected Attributes | Related Functions | List of all members
HepGeom::Plane3D< T > Class Template Reference

#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)
 
a () const
 
b () const
 
c () const
 
d () const
 
Normal3D< T > normal () const
 
Plane3D< T > & normalize ()
 
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)
 
a () const
 
b () const
 
c () const
 
d () const
 
Normal3D< T > normal () const
 
Plane3D< T > & normalize ()
 
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

a_
 
b_
 
c_
 
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)
 

Detailed Description

template<class T>
class HepGeom::Plane3D< T >

Template class for geometrical plane in 3D.

Author
Evgeni Chernyaev Evgue.nosp@m.ni.T.nosp@m.chern.nosp@m.iaev.nosp@m.@cern.nosp@m..ch

Definition at line 30 of file CLHEP/Geometry/Plane3D.h.

Constructor & Destructor Documentation

template<class T>
HepGeom::Plane3D< T >::Plane3D ( )
inline

Default constructor - creates plane z=0.

Definition at line 37 of file CLHEP/Geometry/Plane3D.h.

template<class T>
HepGeom::Plane3D< T >::Plane3D ( a1,
b1,
c1,
d1 
)
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.

template<class T>
HepGeom::Plane3D< T >::Plane3D ( const Normal3D< T > &  n,
const Point3D< T > &  p 
)
inline

Constructor from normal and point.

Definition at line 45 of file CLHEP/Geometry/Plane3D.h.

template<class T>
HepGeom::Plane3D< T >::Plane3D ( const Point3D< T > &  p1,
const Point3D< T > &  p2,
const Point3D< T > &  p3 
)
inline
template<class T>
HepGeom::Plane3D< T >::Plane3D ( const Plane3D< float > &  p)
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.

template<class T>
HepGeom::Plane3D< T >::~Plane3D ( )
inline

Destructor.

Definition at line 68 of file CLHEP/Geometry/Plane3D.h.

template<class T>
HepGeom::Plane3D< T >::Plane3D ( )
inline

Default constructor - creates plane z=0.

Definition at line 37 of file Geometry/Plane3D.h.

template<class T>
HepGeom::Plane3D< T >::Plane3D ( a1,
b1,
c1,
d1 
)
inline

Constructor from four numbers - creates plane a*x+b*y+c*z+d=0.

Definition at line 41 of file Geometry/Plane3D.h.

template<class T>
HepGeom::Plane3D< T >::Plane3D ( const Normal3D< T > &  n,
const Point3D< T > &  p 
)
inline

Constructor from normal and point.

Definition at line 45 of file Geometry/Plane3D.h.

template<class T>
HepGeom::Plane3D< T >::Plane3D ( const Point3D< T > &  p1,
const Point3D< T > &  p2,
const Point3D< T > &  p3 
)
inline
template<class T>
HepGeom::Plane3D< T >::Plane3D ( const Plane3D< float > &  p)
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.

template<class T>
HepGeom::Plane3D< T >::~Plane3D ( )
inline

Destructor.

Definition at line 68 of file Geometry/Plane3D.h.

Member Function Documentation

template<class T>
T HepGeom::Plane3D< T >::a ( ) const
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().

template<class T>
T HepGeom::Plane3D< T >::a ( ) const
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_.

template<class T>
T HepGeom::Plane3D< T >::b ( ) const
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_.

template<class T>
T HepGeom::Plane3D< T >::b ( ) const
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().

template<class T>
T HepGeom::Plane3D< T >::c ( ) const
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().

template<class T>
T HepGeom::Plane3D< T >::c ( ) const
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_.

template<class T>
T HepGeom::Plane3D< T >::d ( ) const
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_.

template<class T>
T HepGeom::Plane3D< T >::d ( ) const
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().

template<class T>
T HepGeom::Plane3D< T >::distance ( const Point3D< T > &  p) const
inline
template<class T>
T HepGeom::Plane3D< T >::distance ( const Point3D< T > &  p) const
inline
template<class T>
Normal3D<T> HepGeom::Plane3D< T >::normal ( ) const
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_.

template<class T>
Normal3D<T> HepGeom::Plane3D< T >::normal ( ) const
inline
template<class T>
Plane3D<T>& HepGeom::Plane3D< T >::normalize ( )
inline

Normalization.

Definition at line 95 of file Geometry/Plane3D.h.

template<class T>
Plane3D<T>& HepGeom::Plane3D< T >::normalize ( )
inline

Normalization.

Definition at line 95 of file CLHEP/Geometry/Plane3D.h.

template<class T>
bool HepGeom::Plane3D< T >::operator!= ( const Plane3D< T > &  p) const
inline
template<class T>
bool HepGeom::Plane3D< T >::operator!= ( const Plane3D< T > &  p) const
inline
template<class T>
Plane3D<T>& HepGeom::Plane3D< T >::operator= ( const Plane3D< T > &  p)
inline
template<class T>
Plane3D<T>& HepGeom::Plane3D< T >::operator= ( const Plane3D< T > &  p)
inline

Assignment.

Definition at line 72 of file Geometry/Plane3D.h.

template<class T>
bool HepGeom::Plane3D< T >::operator== ( const Plane3D< T > &  p) const
inline
template<class T>
bool HepGeom::Plane3D< T >::operator== ( const Plane3D< T > &  p) const
inline
template<class T>
Point3D<T> HepGeom::Plane3D< T >::point ( const Point3D< T > &  p) const
inline
template<class T>
Point3D<T> HepGeom::Plane3D< T >::point ( const Point3D< T > &  p) const
inline
template<class T>
Point3D<T> HepGeom::Plane3D< T >::point ( ) const
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().

template<class T>
Point3D<T> HepGeom::Plane3D< T >::point ( ) const
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().

template<class T>
Plane3D<T>& HepGeom::Plane3D< T >::transform ( const Transform3D m)
inline
template<class T>
Plane3D<T>& HepGeom::Plane3D< T >::transform ( const Transform3D m)
inline

Friends And Related Function Documentation

template<class T>
std::ostream & operator<< ( std::ostream &  os,
const Plane3D< float > &  p 
)
related

Output to the stream.

Definition at line 23 of file Plane3D.cc.

template<class T>
std::ostream & operator<< ( std::ostream &  os,
const Plane3D< float > &  p 
)
related

Output to the stream.

Definition at line 23 of file Plane3D.cc.

template<class T>
std::ostream & operator<< ( std::ostream &  os,
const Plane3D< double > &  p 
)
related

Output to the stream.

Definition at line 30 of file Plane3D.cc.

template<class T>
std::ostream & operator<< ( std::ostream &  os,
const Plane3D< double > &  p 
)
related

Output to the stream.

Definition at line 30 of file Plane3D.cc.

Member Data Documentation

template<class T>
T HepGeom::Plane3D< T >::a_
protected
template<class T>
T HepGeom::Plane3D< T >::b_
protected
template<class T>
T HepGeom::Plane3D< T >::c_
protected
template<class T>
T HepGeom::Plane3D< T >::d_
protected

The documentation for this class was generated from the following file: