// // ******************************************************************** // * DISCLAIMER * // * * // * The following disclaimer summarizes all the specific disclaimers * // * of contributors to this software. The specific disclaimers,which * // * govern, are listed with their locations in: * // * http://cern.ch/geant4/license * // * * // * Neither the authors of this software system, nor their employing * // * institutes,nor the agencies providing financial support for this * // * work make any representation or warranty, express or implied, * // * regarding this software system or assume any liability for its * // * use. * // * * // * This code implementation is the intellectual property of the * // * GEANT4 collaboration. * // * By copying, distributing or modifying the Program (or any work * // * based on the Program) you indicate your acceptance of this * // * statement, and all its terms. * // ******************************************************************** // // // $Id: G4Hyperbola.hh,v 1.7.4.1 2001/06/28 19:08:45 gunter Exp $ // GEANT4 tag $Name: $ // // ---------------------------------------------------------------------- // Class G4Hyperbola // // Class description: // // Definition of a generic hyperbola. // Authors: J.Sulkimo, P.Urban. // Revisions by: L.Broglia, G.Cosmo. // ---------------------------------------------------------------------- #ifndef __HYPERBOLICCURVE_H #define __HYPERBOLICCURVE_H #include "G4Conic.hh" class G4Hyperbola : public G4Conic { public: // with description G4Hyperbola(); virtual ~G4Hyperbola(); // Constructor & destructor. G4Hyperbola(const G4Hyperbola& right); G4Hyperbola& operator=(const G4Hyperbola& right); // Copy constructor and assignment operator. G4Curve* Project(const G4Transform3D& tr= G4Transform3D::Identity); // Transforms and projects the curve. G4bool Tangent(G4CurvePoint& cp, G4Vector3D& v); // Returns tangent to curve at a given point, if existing. // The tangent is computed from the 3D point representation. inline G4double GetPMax() const; inline G4Point3D GetPoint(G4double param) const; inline G4double GetPPoint(const G4Point3D& p) const; // Accessors methods. inline G4double GetSemiAxis() const; inline G4double GetSemiImagAxis() const; inline void Init(G4Axis2Placement3D position0, G4double semiAxis0, G4double semiImagAxis0); // Get/Set for the geometric data. public: // without description inline G4int IntersectRay2D(const G4Ray& ray); //void IntersectRay2D(const G4Ray& ray, G4CurveRayIntersection& is); //G4Hyperbola(G4Point3d, G4Point3d, G4Point3d, // G4Point3d, G4double, G4double ); //G4Point3d EvaluateByParameterValue(G4double u); //G4Point3d GetBoundMax(); //G4Point3d GetBoundMin(); protected: void InitBounded(); private: G4int Inside(const G4Point3D&, const G4Ray&); private: G4Point3D Focus1; G4Point3D Focus2; G4Point3D ProjFocus1; G4Point3D ProjFocus2; // geometric data G4double semiAxis; G4double semiImagAxis; G4double ratioAxisImagAxis; G4Transform3D toUnitHyperbola; G4double forTangent; // R_1^2/R_2^2 }; #include "G4Hyperbola.icc" #endif