diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2024-10-28 11:39:45 -0400 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2024-10-28 11:39:45 -0400 |
| commit | e27211417ab0538096e773bd9afa585651500839 (patch) | |
| tree | 8478534a312ec63ad03215b1e4b4b87fc61f7519 /balls.h | |
| parent | 36623f17ca2194fbb614a3cbce6b887734418f06 (diff) | |
| download | balls-e27211417ab0538096e773bd9afa585651500839.zip | |
variable radius
Diffstat (limited to 'balls.h')
| -rw-r--r-- | balls.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -6,5 +6,7 @@ typedef struct { int isCollision(float2 p1, float r1, float2 p2, float r2); Rectangle insetRect(Rectangle r, float n); + +float randFloat(float lo, float hi); float2 randPtInRect(Rectangle r); float2 randVec(float xmin, float xmax, float ymin, float ymax); |