source: trunk/source/geometry/solids/BREPS/include/G4PointRat.hh

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

tag geant4.9.4 beta 1 + modifs locales

File size: 3.4 KB
RevLine 
[831]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: G4PointRat.hh,v 1.10 2006/06/29 18:40:12 gunter Exp $
[1337]28// GEANT4 tag $Name: geant4-09-04-beta-01 $
[831]29//
30// ----------------------------------------------------------------------
31// Class G4PointRat
32//
33// Class description:
34//
35// A G4PointRat object is composed of:
36// - a point in 3D space (G4Point3D)
37// - a scale factor (set to 1 by default)
38
39// Authors: J.Sulkimo, P.Urban.
40// Revisions by: A.Floquet, L.Broglia, G.Cosmo.
41// ----------------------------------------------------------------------
42#ifndef __G4POINT_RAT
43#define __G4POINT_RAT
44
45#include "geomdefs.hh" // For kInfinity
46
47#include "G4Point3D.hh"
48#include "G4Plane3D.hh"
49
50#define SQRT_SMALL_FASTF 1.0e-18
51#define SMALL SQRT_SMALL_FASTF
52#define ROW 0
53#define COL 1
54
55const G4Point3D PINFINITY(kInfinity, kInfinity, kInfinity);
56
57class G4PointRat
58{
59
60public: // with description
61
62 G4PointRat();
63 ~G4PointRat();
64 // Constructor & destructor.
65
66 G4PointRat(const G4Point3D&);
67 // Copy constructor.
68
69 G4PointRat& operator=(const G4Point3D&);
70 G4PointRat& operator=(const G4PointRat&);
71 // Overloaded assignment operators.
72
73 inline G4double x() const;
74 inline void setX (G4double Value);
75 inline G4double y() const;
76 inline void setY (G4double Value);
77 inline G4double z() const;
78 inline void setZ (G4double Value);
79 inline G4double w() const;
80 inline void setW(G4double Value);
81 inline G4Point3D pt() const;
82 // Get/Set methods for attributes.
83
84 inline G4double PlaneDistance(const G4Plane3D& Pl) const;
85 // Returns distance from a given plane.
86
87public: // without description
88
89 G4int GetType(void) const; // This function should be removed
90 // if calls to this are also removed
91
92private:
93
94 G4Point3D pt3d;
95 G4double s;
96};
97
98#include "G4PointRat.icc"
99
100#endif
Note: See TracBrowser for help on using the repository browser.