source: trunk/source/geometry/solids/BREPS/include/G4SphericalSurface.icc @ 1246

Last change on this file since 1246 was 1228, checked in by garnier, 15 years ago

update geant4.9.3 tag

File size: 3.2 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: G4SphericalSurface.icc,v 1.4 2006/06/29 18:40:39 gunter Exp $
28// GEANT4 tag $Name: geant4-09-03 $
29//
30// --------------------------------------------------------------------
31// GEANT 4 inline definitions file
32//
33// G4SphericalSurface.icc
34//
35// Implementation of inline methods of G4SphericalSurface
36// --------------------------------------------------------------------
37
38inline
39G4int 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
51inline
52G4String G4SphericalSurface::GetEntityType() const
53{
54  return G4String("Spherical_Surface");
55}
56
57inline
58void 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
69inline
70G4Vector3D G4SphericalSurface::GetXAxis() const
71{
72  return x_axis;
73}
74
75inline
76G4Vector3D G4SphericalSurface::GetZAxis() const
77{
78  return z_axis;
79}
80
81inline
82G4double G4SphericalSurface::GetRadius() const
83{
84  return radius;
85}
86
87inline
88G4double G4SphericalSurface::GetPhi1() const
89{
90  return phi_1;
91}
92
93inline
94G4double G4SphericalSurface::GetPhi2() const
95{
96  return phi_2;
97}
98
99inline
100G4double G4SphericalSurface::GetTheta1() const
101{
102  return theta_1;
103}
104
105inline
106G4double G4SphericalSurface::GetTheta2() const
107{
108  return theta_2;
109}
Note: See TracBrowser for help on using the repository browser.