#include <EmcRecEndCapGeo.h>
Public Member Functions | |
EmcRecGeoPlane (double a=0, double b=0, double c=0, double d=0) | |
EmcRecGeoPlane (const HepPoint3D &n, const HepPoint3D &p) | |
Constructor from normal and point. | |
EmcRecGeoPlane (const HepPoint3D &p1, const HepPoint3D &p2, const HepPoint3D &p3) | |
Constructor from three points. | |
EmcRecGeoPlane & | operator= (const EmcRecGeoPlane &plane) |
Assignment. | |
void | Build (double a=0, double b=0, double c=0, double d=0) |
void | Build (const HepPoint3D &n, const HepPoint3D &p) |
void | Build (const HepPoint3D &p1, const HepPoint3D &p2, const HepPoint3D &p3) |
Definition at line 117 of file EmcRecEndCapGeo.h.
EmcRecGeoPlane::EmcRecGeoPlane | ( | double | a = 0 , |
|
double | b = 0 , |
|||
double | c = 0 , |
|||
double | d = 0 | |||
) | [inline] |
Constructor from four numbers. The numbers are the coefficients of the equation of the plane:
a*x+b*y+c*z+d=0
Definition at line 127 of file EmcRecEndCapGeo.h.
EmcRecGeoPlane::EmcRecGeoPlane | ( | const HepPoint3D & | n, | |
const HepPoint3D & | p | |||
) | [inline] |
EmcRecGeoPlane::EmcRecGeoPlane | ( | const HepPoint3D & | p1, | |
const HepPoint3D & | p2, | |||
const HepPoint3D & | p3 | |||
) | [inline] |
Constructor from three points.
Definition at line 135 of file EmcRecEndCapGeo.h.
References cross().
00136 { 00137 HepNormal3D n = (p2-p1).cross(p3-p1); 00138 a_ = n.x(); b_ = n.y(); c_ = n.z(); d_ = -n*p1; 00139 }
void EmcRecGeoPlane::Build | ( | const HepPoint3D & | p1, | |
const HepPoint3D & | p2, | |||
const HepPoint3D & | p3 | |||
) | [inline] |
Definition at line 156 of file EmcRecEndCapGeo.h.
References cross().
00156 { 00157 HepNormal3D n = (p2-p1).cross(p3-p1); 00158 a_ = n.x(); b_ = n.y(); c_ = n.z(); d_ = -n*p1; 00159 return; }
void EmcRecGeoPlane::Build | ( | const HepPoint3D & | n, | |
const HepPoint3D & | p | |||
) | [inline] |
void EmcRecGeoPlane::Build | ( | double | a = 0 , |
|
double | b = 0 , |
|||
double | c = 0 , |
|||
double | d = 0 | |||
) | [inline] |
Definition at line 150 of file EmcRecEndCapGeo.h.
Referenced by EmcRecEndCapGeo::CalculateStandardSector1(), and EmcRecEndCapGeo::CalculateStandardSector2().
EmcRecGeoPlane& EmcRecGeoPlane::operator= | ( | const EmcRecGeoPlane & | plane | ) | [inline] |
Assignment.
Definition at line 142 of file EmcRecEndCapGeo.h.
00142 { 00143 if(this!=&plane) { 00144 a_ = plane.a_; b_ = plane.b_; c_ = plane.c_; d_ = plane.d_; 00145 } 00146 return *this; 00147 }