summaryrefslogtreecommitdiffstats
path: root/balls.h
diff options
context:
space:
mode:
Diffstat (limited to 'balls.h')
-rw-r--r--balls.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/balls.h b/balls.h
index 73ab14c..3d0202c 100644
--- a/balls.h
+++ b/balls.h
@@ -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);