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: G4SphericalSurface.icc,v 1.4 2006/06/29 18:40:39 gunter Exp $ |
---|
28 | // GEANT4 tag $Name: geant4-09-02-ref-02 $ |
---|
29 | // |
---|
30 | // -------------------------------------------------------------------- |
---|
31 | // GEANT 4 inline definitions file |
---|
32 | // |
---|
33 | // G4SphericalSurface.icc |
---|
34 | // |
---|
35 | // Implementation of inline methods of G4SphericalSurface |
---|
36 | // -------------------------------------------------------------------- |
---|
37 | |
---|
38 | inline |
---|
39 | G4int G4SphericalSurface::operator==( const G4SphericalSurface& s ) |
---|
40 | { |
---|
41 | return origin == s.origin && |
---|
42 | x_axis == s.x_axis && |
---|
43 | z_axis == s.z_axis && |
---|
44 | radius == s.radius && |
---|
45 | phi_1 == s.phi_1 && |
---|
46 | phi_2 == s.phi_2 && |
---|
47 | theta_1 == s.theta_1 && |
---|
48 | theta_2 == s.theta_2; |
---|
49 | } |
---|
50 | |
---|
51 | inline |
---|
52 | G4String G4SphericalSurface::GetEntityType() const |
---|
53 | { |
---|
54 | return G4String("Spherical_Surface"); |
---|
55 | } |
---|
56 | |
---|
57 | inline |
---|
58 | void G4SphericalSurface::Comp(G4Vector3D& v, G4Point3D& min , G4Point3D& max) |
---|
59 | { |
---|
60 | if(v.x() > max.x()) max.setX(v.x()); |
---|
61 | if(v.y() > max.y()) max.setY(v.y()); |
---|
62 | if(v.z() > max.z()) max.setZ(v.z()); |
---|
63 | |
---|
64 | if(v.x() < min.x()) min.setX(v.x()); |
---|
65 | if(v.y() < min.y()) min.setY(v.y()); |
---|
66 | if(v.z() < min.z()) min.setZ(v.z()); |
---|
67 | } |
---|
68 | |
---|
69 | inline |
---|
70 | G4Vector3D G4SphericalSurface::GetXAxis() const |
---|
71 | { |
---|
72 | return x_axis; |
---|
73 | } |
---|
74 | |
---|
75 | inline |
---|
76 | G4Vector3D G4SphericalSurface::GetZAxis() const |
---|
77 | { |
---|
78 | return z_axis; |
---|
79 | } |
---|
80 | |
---|
81 | inline |
---|
82 | G4double G4SphericalSurface::GetRadius() const |
---|
83 | { |
---|
84 | return radius; |
---|
85 | } |
---|
86 | |
---|
87 | inline |
---|
88 | G4double G4SphericalSurface::GetPhi1() const |
---|
89 | { |
---|
90 | return phi_1; |
---|
91 | } |
---|
92 | |
---|
93 | inline |
---|
94 | G4double G4SphericalSurface::GetPhi2() const |
---|
95 | { |
---|
96 | return phi_2; |
---|
97 | } |
---|
98 | |
---|
99 | inline |
---|
100 | G4double G4SphericalSurface::GetTheta1() const |
---|
101 | { |
---|
102 | return theta_1; |
---|
103 | } |
---|
104 | |
---|
105 | inline |
---|
106 | G4double G4SphericalSurface::GetTheta2() const |
---|
107 | { |
---|
108 | return theta_2; |
---|
109 | } |
---|