#ifndef TG3Plane_hh #define TG3Plane_hh #include "TVector3.h" class TLine3D; class TG3Plane: public TObject { //----------------------------------------------------------------------------- // data members //----------------------------------------------------------------------------- protected: TVector3 fR0; // point in a plane TVector3 fNormal; // normal to the plane //----------------------------------------------------------------------------- // functions //----------------------------------------------------------------------------- public: // ****** constructors and destructor TG3Plane(); TG3Plane(const TVector3& R0, const TVector3& Normal); virtual ~TG3Plane(); // ****** accessors TVector3& GetR0 () { return fR0; } TVector3& GetNormal() { return fNormal; } // ****** less trivial methods // returns 3D point where line // intersects *this plane Int_t FindIntersection(const TLine3D& Line, TVector3& Point); ClassDef(TG3Plane,1) // plane in 3D }; #endif