47 constructorParams.origin = origin;
48 constructorParams.xhat = xhat;
49 constructorParams.zhat = zhat;
50 constructorParams.radius = radius;
68 constructorParams.origin = rhs.constructorParams.origin;
69 constructorParams.xhat = rhs.constructorParams.xhat;
70 constructorParams.zhat = rhs.constructorParams.zhat;
71 constructorParams.radius = rhs.constructorParams.radius;
81 if (
this == &rhs) {
return *
this; }
89 constructorParams.origin = rhs.constructorParams.origin;
90 constructorParams.xhat = rhs.constructorParams.xhat;
91 constructorParams.zhat = rhs.constructorParams.zhat;
92 constructorParams.radius = rhs.constructorParams.radius;
99void G4BREPSolidSphere::InitializeSphere()
107 constructorParams.xhat,
108 constructorParams.zhat,
109 constructorParams.radius,
144 G4Ray r(Pttmp, Vtmp);
162 if(validNorm) *validNorm =
false;
166 G4Ray r(Pttmp, Vtmp);
172 if(validNorm) *validNorm =
true;
198 <<
"\n origin: " << constructorParams.origin
199 <<
"\n xhat: " << constructorParams.xhat
200 <<
"\n zhat: " << constructorParams.zhat
201 <<
"\n radius: " << constructorParams.radius
202 <<
"\n-----------------------------------------------------------\n";
G4ThreeVector SurfaceNormal(const G4ThreeVector &) const
std::ostream & StreamInfo(std::ostream &os) const
G4BREPSolidSphere & operator=(const G4BREPSolidSphere &rhs)
EInside Inside(register const G4ThreeVector &Pt) const
G4double DistanceToIn(const G4ThreeVector &) const
G4double DistanceToOut(register const G4ThreeVector &Pt, register const G4ThreeVector &V, const G4bool calcNorm=false, G4bool *validNorm=0, G4ThreeVector *n=0) const
G4BREPSolidSphere(const G4String &name, const G4Vector3D &origin, const G4Vector3D &xhat, const G4Vector3D &zhat, G4double radius)
G4BREPSolid & operator=(const G4BREPSolid &rhs)
G4int Intersect(register const G4Ray &) const
virtual std::ostream & StreamInfo(std::ostream &os) const
virtual void Initialize()
static G4double ShortestDistance
virtual G4int Intersect(const G4Ray &)
virtual G4Vector3D Normal(const G4Vector3D &p) const
virtual G4double HowNear(const G4Vector3D &x) const
G4double GetDistance() const