1#ifndef G_SOLID_SPHERE_H
2#define G_SOLID_SPHERE_H
14 SolidSphere(
const double cx,
const double cy,
const double cz,
15 const double rmin,
const double rmax);
19 virtual bool IsInside(
const double x,
const double y,
const double z)
const;
20 virtual bool GetBoundingBox(
double& xmin,
double& ymin,
double& zmin,
21 double& xmax,
double& ymax,
double& zmax)
const;
24 virtual bool GetCenter(
double& x,
double& y,
double& z)
const;
25 virtual bool GetDimensions(
double& l1,
double& l2,
double& l3)
const;
26 virtual bool GetOrientation(
double& ctheta,
double& stheta,
double& cphi,
34 double m_cX, m_cY, m_cZ;
36 double m_rMin, m_rMax;
virtual bool GetCenter(double &x, double &y, double &z) const
virtual bool IsSphere() const
Return true if the solid is a sphere.
void SetOuterRadius(const double rmax)
virtual bool IsInside(const double x, const double y, const double z) const
Check whether a given point is inside the solid.
~SolidSphere()
Destructor.
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 GetOrientation(double &ctheta, double &stheta, double &cphi, double &sphi) const
virtual bool GetDimensions(double &l1, double &l2, double &l3) const
void SetInnerRadius(const double rmin)
Abstract base class for solids.