#ifndef __JGEOMETRY2DTESTKIT__ #define __JGEOMETRY2DTESTKIT__ #include "TRandom3.h" #include "JGeometry2D/JPosition2D.hh" #include "JMath/JRandom.hh" #include "JMath/JConstants.hh" /** * \author mdejong */ namespace JGEOMETRY2D {} namespace JPP { using namespace JGEOMETRY2D; } namespace JGEOMETRY2D { using JMATH::PI; using JMATH::getRandom; /** * Randomize position. * * \param p pointer to valid object */ inline void randomize(JPosition2D* p) { new (p) JPosition2D(getRandom(-1.0, +1.0), getRandom(-1.0, +1.0)); }; } #endif