source: trunk/source/geometry/solids/BREPS/include/G4Hyperbola.hh @ 1337

Last change on this file since 1337 was 1337, checked in by garnier, 14 years ago

tag geant4.9.4 beta 1 + modifs locales

File size: 3.9 KB
Line 
1//
2// ********************************************************************
3// * License and Disclaimer                                           *
4// *                                                                  *
5// * The  Geant4 software  is  copyright of the Copyright Holders  of *
6// * the Geant4 Collaboration.  It is provided  under  the terms  and *
7// * conditions of the Geant4 Software License,  included in the file *
8// * LICENSE and available at  http://cern.ch/geant4/license .  These *
9// * include a list of copyright holders.                             *
10// *                                                                  *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work  make  any representation or  warranty, express or implied, *
14// * regarding  this  software system or assume any liability for its *
15// * use.  Please see the license in the file  LICENSE  and URL above *
16// * for the full disclaimer and the limitation of liability.         *
17// *                                                                  *
18// * This  code  implementation is the result of  the  scientific and *
19// * technical work of the GEANT4 collaboration.                      *
20// * By using,  copying,  modifying or  distributing the software (or *
21// * any work based  on the software)  you  agree  to acknowledge its *
22// * use  in  resulting  scientific  publications,  and indicate your *
23// * acceptance of all terms of the Geant4 Software license.          *
24// ********************************************************************
25//
26//
27// $Id: G4Hyperbola.hh,v 1.10 2006/06/29 18:39:36 gunter Exp $
28// GEANT4 tag $Name: geant4-09-04-beta-01 $
29//
30// ----------------------------------------------------------------------
31// Class G4Hyperbola
32//
33// Class description:
34//
35// Definition of a generic hyperbola.
36
37// Authors: J.Sulkimo, P.Urban.
38// Revisions by: L.Broglia, G.Cosmo.
39// ----------------------------------------------------------------------
40#ifndef __HYPERBOLICCURVE_H
41#define __HYPERBOLICCURVE_H
42
43#include "G4Conic.hh"
44
45class G4Hyperbola : public G4Conic
46{
47
48public:  // with description
49
50  G4Hyperbola();
51  virtual ~G4Hyperbola();
52    // Constructor & destructor.
53
54  G4Hyperbola(const G4Hyperbola& right);
55  G4Hyperbola& operator=(const G4Hyperbola& right);
56    // Copy constructor and assignment operator.
57
58  G4Curve* Project(const G4Transform3D& tr=
59                   HepGeom::Transform3D::Identity);
60    // Transforms and projects the curve.
61
62  G4bool Tangent(G4CurvePoint& cp, G4Vector3D& v);
63    // Returns tangent to curve at a given point, if existing.
64    // The tangent is computed from the 3D point representation.
65
66  inline G4double  GetPMax() const;
67  inline G4Point3D GetPoint(G4double param) const;
68  inline G4double  GetPPoint(const G4Point3D& p) const;
69    // Accessors methods.
70
71  inline G4double GetSemiAxis() const;
72  inline G4double GetSemiImagAxis() const;
73  inline void Init(G4Axis2Placement3D position0,
74                   G4double semiAxis0, G4double semiImagAxis0);
75    // Get/Set for the geometric data.
76
77public:  // without description
78
79  inline G4int IntersectRay2D(const G4Ray& ray);
80
81  //void IntersectRay2D(const G4Ray& ray, G4CurveRayIntersection& is);
82  //G4Hyperbola(G4Point3d, G4Point3d, G4Point3d,
83  //            G4Point3d, G4double, G4double );
84  //G4Point3d EvaluateByParameterValue(G4double u);
85  //G4Point3d GetBoundMax();
86  //G4Point3d GetBoundMin();   
87
88protected:
89
90  void InitBounded();
91
92private:
93
94  G4int Inside(const G4Point3D&, const G4Ray&);
95
96private:
97
98  G4Point3D Focus1;
99  G4Point3D Focus2;   
100  G4Point3D ProjFocus1;
101  G4Point3D ProjFocus2; 
102
103  // geometric data
104  G4double semiAxis;
105  G4double semiImagAxis;
106
107  G4double ratioAxisImagAxis;
108
109  G4Transform3D toUnitHyperbola;
110
111  G4double forTangent;
112    // R_1^2/R_2^2
113};
114
115#include "G4Hyperbola.icc"
116
117#endif
Note: See TracBrowser for help on using the repository browser.