41 fXmin(xmin), fXmax(xmax), fYmin(ymin), fYmax(ymax), fZmin(zmin), fZmax(zmax),
42 fRadiusCached(false), fCentreCached(false), fRadius(0.)
46 fRadiusCached(true), fCentreCached(true),
47 fRadius(radius), fCentre(centre)
50 G4double halfSide (radius / std::sqrt (3.));
51 fXmin = centre.
x () - halfSide;
52 fXmax = centre.
x () + halfSide;
53 fYmin = centre.
y () - halfSide;
54 fYmax = centre.
y () + halfSide;
55 fZmin = centre.
z () - halfSide;
56 fZmax = centre.
z () + halfSide;
82 os <<
"G4VisExtent (bounding box):";
83 os <<
"\n X limits: " << e.
fXmin <<
' ' << e.
fXmax;
84 os <<
"\n Y limits: " << e.
fYmin <<
' ' << e.
fYmax;
85 os <<
"\n Z limits: " << e.
fZmin <<
' ' << e.
fZmax;
std::ostream & operator<<(std::ostream &, const BasicVector3D< float > &)
const G4Point3D & GetExtentCentre() const
G4double GetExtentRadius() const
G4bool operator!=(const G4VisExtent &e) const
HepGeom::Point3D< G4double > G4Point3D
G4VisExtent(G4double xmin=0., G4double xmax=0., G4double ymin=0., G4double ymax=0., G4double zmin=0., G4double zmax=0.)