Permalink
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (25 sloc) 425 Bytes
module picture
{
union Picture
{
Circle circle;
Rectangle rectangle;
Vector<Picture> composed;
Translated<Picture> translated;
};
struct Circle
{
Double radius;
};
struct Rectangle
{
Double width;
Double height;
};
struct Translated<T>
{
Double xoffset = 0;
Double yoffset = 0;
T object;
};
};