46 #ifdef BUILD_ELLIPSE_DLL
47 #define EGS_ELLIPSE_EXPORT __declspec(dllexport)
49 #define EGS_ELLIPSE_EXPORT __declspec(dllimport)
51 #define EGS_ELLIPSE_LOCAL
55 #ifdef HAVE_VISIBILITY
56 #define EGS_ELLIPSE_EXPORT __attribute__ ((visibility ("default")))
57 #define EGS_ELLIPSE_LOCAL __attribute__ ((visibility ("hidden")))
59 #define EGS_ELLIPSE_EXPORT
60 #define EGS_ELLIPSE_LOCAL
101 EGS_Float cphi, sphi;
103 return EGS_Vector(xo + r*a*cphi, yo + r*b*sphi, 0);
108 EGS_Float xo, yo, a, b;
A class representing 3D vectors.
void getAzimuth(EGS_Float &cphi, EGS_Float &sphi)
Sets cphi and sphi to the cosine and sine of a random angle uniformely distributed between 0 and ...
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...
EGS_RandomGenerator class header file.
EGS_BaseShape and shape classes header file.
EGS_EllipseShape(EGS_Float Xo, EGS_Float Yo, EGS_Float A, EGS_Float B, const string &Name="", EGS_ObjectFactory *f=0)
Construct an ellipse with midpoint at Xo,Yo and half axis A and B.
Attempts to fix broken math header files.
EGS_Float getUniform()
Returns a random number uniformly distributed between zero (inclusive) and 1 (exclusive).