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 // G4FPlane.icc 00033 // 00034 // Implementation of inline methods of G4FPlane 00035 // -------------------------------------------------------------------- 00036 00037 inline 00038 G4int G4FPlane::GetConvex() const 00039 { 00040 return Convex; 00041 } 00042 00043 inline 00044 void G4FPlane::Deactivate() 00045 { 00046 active=0; 00047 } 00048 00049 inline 00050 G4int G4FPlane::GetNumberOfPoints() const 00051 { 00052 return (surfaceBoundary.GetNumberOfPoints()); 00053 } 00054 00055 inline 00056 G4Point3D G4FPlane::GetSrfPoint() const 00057 { 00058 return pplace.GetLocation(); 00059 } 00060 00061 inline 00062 const G4Point3D& G4FPlane::GetPoint(G4int Count) const 00063 { 00064 return surfaceBoundary.GetPoint(Count); 00065 } 00066 00067 inline 00068 const G4Point3D& G4FPlane::GetHitPoint() const 00069 { 00070 return hitpoint; 00071 } 00072 00073 inline 00074 G4Ray* G4FPlane::Norm() 00075 { 00076 return NormalX; 00077 } 00078 00079 inline 00080 G4Vector3D G4FPlane::SurfaceNormal(const G4Point3D&) const 00081 { 00082 return NormalX->GetDir(); 00083 } 00084 00085 inline 00086 const char* G4FPlane::Name() const 00087 { 00088 return "G4FPlane"; 00089 } 00090 00091 inline 00092 G4Axis2Placement3D G4FPlane::GetPplace() const 00093 { 00094 return pplace; 00095 } 00096 00097 inline 00098 G4Plane G4FPlane::GetPplane() const 00099 { 00100 return Pl; 00101 } 00102 00103 inline 00104 G4int G4FPlane::MyType() const 00105 { 00106 return 1; 00107 } 00108 00109 inline 00110 G4int G4FPlane::Sign(G4double a) const 00111 { 00112 register G4int i=1; 00113 if(a<0) 00114 i= -1; 00115 return i; 00116 }