00001 // 00002 // ******************************************************************** 00003 // * License and Disclaimer * 00004 // * * 00005 // * The Geant4 software is copyright of the Copyright Holders of * 00006 // * the Geant4 Collaboration. It is provided under the terms and * 00007 // * conditions of the Geant4 Software License, included in the file * 00008 // * LICENSE and available at http://cern.ch/geant4/license . These * 00009 // * include a list of copyright holders. * 00010 // * * 00011 // * Neither the authors of this software system, nor their employing * 00012 // * institutes,nor the agencies providing financial support for this * 00013 // * work make any representation or warranty, express or implied, * 00014 // * regarding this software system or assume any liability for its * 00015 // * use. Please see the license in the file LICENSE and URL above * 00016 // * for the full disclaimer and the limitation of liability. * 00017 // * * 00018 // * This code implementation is the result of the scientific and * 00019 // * technical work of the GEANT4 collaboration. * 00020 // * By using, copying, modifying or distributing the software (or * 00021 // * any work based on the software) you agree to acknowledge its * 00022 // * use in resulting scientific publications, and indicate your * 00023 // * acceptance of all terms of the Geant4 Software license. * 00024 // ******************************************************************** 00025 // 00026 // 00027 // $Id$ 00028 // 00029 // -------------------------------------------------------------------- 00030 // GEANT 4 inline definitions file 00031 // 00032 // G4SphericalSurface.icc 00033 // 00034 // Implementation of inline methods of G4SphericalSurface 00035 // -------------------------------------------------------------------- 00036 00037 inline 00038 G4int G4SphericalSurface::operator==( const G4SphericalSurface& surf ) 00039 { 00040 return origin == surf.origin && 00041 x_axis == surf.x_axis && 00042 z_axis == surf.z_axis && 00043 radius == surf.radius && 00044 phi_1 == surf.phi_1 && 00045 phi_2 == surf.phi_2 && 00046 theta_1 == surf.theta_1 && 00047 theta_2 == surf.theta_2; 00048 } 00049 00050 inline 00051 G4String G4SphericalSurface::GetEntityType() const 00052 { 00053 return G4String("Spherical_Surface"); 00054 } 00055 00056 inline 00057 void G4SphericalSurface::Comp(G4Vector3D& v, G4Point3D& min , G4Point3D& max) 00058 { 00059 if(v.x() > max.x()) max.setX(v.x()); 00060 if(v.y() > max.y()) max.setY(v.y()); 00061 if(v.z() > max.z()) max.setZ(v.z()); 00062 00063 if(v.x() < min.x()) min.setX(v.x()); 00064 if(v.y() < min.y()) min.setY(v.y()); 00065 if(v.z() < min.z()) min.setZ(v.z()); 00066 } 00067 00068 inline 00069 G4Vector3D G4SphericalSurface::GetXAxis() const 00070 { 00071 return x_axis; 00072 } 00073 00074 inline 00075 G4Vector3D G4SphericalSurface::GetZAxis() const 00076 { 00077 return z_axis; 00078 } 00079 00080 inline 00081 G4double G4SphericalSurface::GetRadius() const 00082 { 00083 return radius; 00084 } 00085 00086 inline 00087 G4double G4SphericalSurface::GetPhi1() const 00088 { 00089 return phi_1; 00090 } 00091 00092 inline 00093 G4double G4SphericalSurface::GetPhi2() const 00094 { 00095 return phi_2; 00096 } 00097 00098 inline 00099 G4double G4SphericalSurface::GetTheta1() const 00100 { 00101 return theta_1; 00102 } 00103 00104 inline 00105 G4double G4SphericalSurface::GetTheta2() const 00106 { 00107 return theta_2; 00108 }