14 SolidBox(
const double cx,
const double cy,
const double cz,
15 const double lx,
const double ly,
const double lz);
17 SolidBox(
const double cx,
const double cy,
const double cz,
18 const double lx,
const double ly,
const double lz,
19 const double dx,
const double dy,
const double dz);
23 virtual bool IsInside(
const double x,
const double y,
const double z)
const;
24 virtual bool GetBoundingBox(
double& xmin,
double& ymin,
double& zmin,
25 double& xmax,
double& ymax,
double& zmax)
const;
26 virtual bool IsBox()
const {
return true; }
28 virtual bool GetCenter(
double& x,
double& y,
double& z)
const;
29 virtual bool GetDimensions(
double& l1,
double& l2,
double& l3)
const;
30 virtual bool GetOrientation(
double& ctheta,
double& stheta,
double& cphi,
39 double m_cX, m_cY, m_cZ;
41 double m_lX, m_lY, m_lZ;
43 double m_dX, m_dY, m_dZ;
44 double m_cPhi, m_sPhi;
45 double m_cTheta, m_sTheta;
void SetHalfLengthX(const double lx)
virtual bool GetOrientation(double &ctheta, double &stheta, double &cphi, double &sphi) const
void SetHalfLengthZ(const double lz)
virtual bool GetDimensions(double &l1, double &l2, double &l3) const
virtual bool IsInside(const double x, const double y, const double z) const
Check whether a given point is inside the solid.
virtual bool GetCenter(double &x, double &y, double &z) const
virtual bool GetBoundingBox(double &xmin, double &ymin, double &zmin, double &xmax, double &ymax, double &zmax) const
Return the bounding box of the solid.
virtual bool IsBox() const
Return true if the solid is a box.
void SetHalfLengthY(const double ly)
Abstract base class for solids.