14 inline Real Random(Real max=1, Real min=0)
16 return min + (max-min) * (Real(rand() % (int)100) / Real(100));
19 typedef unsigned ObjectID;
21 * NOTE: Extra entry in the enum so we can use this as an array index
30 NUMBER_OF_OBJECT_TYPES
45 /** Used by all objects **/
46 std::vector<ObjectType> types; // types of objects
47 std::vector<Rect> bounds; // rectangle bounds of objects
48 /** Used by BEZIER and GROUP to identify data position in relevant vector **/
49 std::vector<unsigned> data_indices;
50 /** Used by BEZIER only **/
51 std::vector<Bezier> beziers; // bezier curves - look up by data_indices
52 /** Used by PATH only **/
53 std::vector<Path> paths;