45 #ifndef EGS_SPHERICAL_SHELL_
46 #define EGS_SPHERICAL_SHELL_
55 #ifdef BUILD_SPHERICAL_SHELL_DLL
56 #define EGS_SPHERICAL_SHELL_EXPORT __declspec(dllexport)
58 #define EGS_SPHERICAL_SHELL_EXPORT __declspec(dllimport)
60 #define EGS_SPHERICAL_SHELL_LOCAL
64 #ifdef HAVE_VISIBILITY
65 #define EGS_SPHERICAL_SHELL_EXPORT __attribute__ ((visibility ("default")))
66 #define EGS_SPHERICAL_SHELL_LOCAL __attribute__ ((visibility ("hidden")))
68 #define EGS_SPHERICAL_SHELL_EXPORT
69 #define EGS_SPHERICAL_SHELL_LOCAL
129 EGS_Float
area()
const;
133 EGS_Float r_inner, r_outer,
sgn;
EGS_Float sgn
The sphere radius.
A class representing 3D vectors.
Base shape class. All shapes in the EGSnrc C++ class library are derived from EGS_BaseShape.
bool supportsDirectionMethod() const
Returns true. (It is easy to implement the getPointSourceDirection() method for a sphere...
virtual EGS_Vector getPoint(EGS_RandomGenerator *rndm)
Sample and return a random 3D vector.
Base random number generator class. All random number generators should be derived from this class...
virtual EGS_Float area() const
EGS_RandomGenerator class header file.
virtual void getPointSourceDirection(const EGS_Vector &xo, EGS_RandomGenerator *rndm, EGS_Vector &u, EGS_Float &wt)
EGS_BaseShape and shape classes header file.
Attempts to fix broken math header files.
EGS_Vector xo
The sphere midpoint.
EGS_Float half_angle
Half angle of conical section.