diff options
Diffstat (limited to 'balls.h')
| -rw-r--r-- | balls.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -11,10 +11,15 @@ typedef struct { } Vector; typedef struct { + float r, g, b; +} Color; + +typedef struct { Point p; /* position [m] */ Vector v; /* velocity [m/s] */ double r; /* radius [m] */ double m; /* mass [kg] */ + Color color; } Ball; Point addPt(Point p, Point q); |