diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2024-10-02 16:47:32 -0400 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2024-10-02 16:47:32 -0400 |
| commit | b45a78b60136c3887430d309d2f78ed972c1fbc8 (patch) | |
| tree | 062b25be94a633c922c26061f91afe7620eade27 /balls.h | |
| parent | 419c88ca227949f675eb10a38b253a8702b74ebe (diff) | |
| download | balls-b45a78b60136c3887430d309d2f78ed972c1fbc8.zip | |
ball colors
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); |