Import Geant4 3.0.0 source tree
This commit is contained in:
@@ -1,49 +1,31 @@
|
||||
inline void G4CircularCurve::Init(const G4Axis2Placement3D& position0,
|
||||
G4double radius0) {
|
||||
// This code implementation is the intellectual property of
|
||||
// the GEANT4 collaboration.
|
||||
//
|
||||
// By copying, distributing or modifying the Program (or any work
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4CircularCurve.icc,v 1.4 2000/08/28 15:00:31 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-03-00 $
|
||||
//
|
||||
// --------------------------------------------------------------------
|
||||
// GEANT 4 inline definitions file
|
||||
//
|
||||
// G4CircularCurve.icc
|
||||
//
|
||||
// Implementation of inline methods of G4CircularCurve
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
inline
|
||||
void G4CircularCurve::Init(const G4Axis2Placement3D& position0,
|
||||
G4double radius0)
|
||||
{
|
||||
position= position0;
|
||||
radius= radius0;
|
||||
}
|
||||
|
||||
inline G4double G4CircularCurve::GetRadius() const {
|
||||
inline
|
||||
G4double G4CircularCurve::GetRadius() const
|
||||
{
|
||||
return radius;
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
inline G4double G4CircularCurve::GetPMax() {
|
||||
return twopi;
|
||||
}
|
||||
|
||||
inline G4Point3D G4CircularCurve::GetPoint(G4double param) {
|
||||
return position.GetLocation()+radius*
|
||||
( cos(param)*position.GetPX() + sin(param)*position.GetPY() );
|
||||
}
|
||||
|
||||
inline G4double G4CircularCurve::GetPPoint(const G4Point3D& pt) {
|
||||
G4Point3D ptLocal= position.GetToPlacementCoordinates()*pt;
|
||||
G4double angle= atan2(ptLocal.y(), ptLocal.x());
|
||||
return (angle<0)? angle+twopi: angle;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "G4CurveRayIntersection.hh"
|
||||
|
||||
/*
|
||||
inline void G4CircularCurve::IntersectRay2D(const G4Ray& ray,
|
||||
G4CurveRayIntersection& is)
|
||||
{
|
||||
G4Exception("G4CircularCurve is always 3D!");
|
||||
exit(1);
|
||||
}
|
||||
*/
|
||||
|
||||
inline G4int G4CircularCurve::IntersectRay2D(const G4Ray& ray)
|
||||
{
|
||||
G4Exception("G4CircularCurve is always 3D!");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user