summaryrefslogtreecommitdiffstats
path: root/balls.h
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2024-10-28 11:39:45 -0400
committerSam Anthony <sam@samanthony.xyz>2024-10-28 11:39:45 -0400
commite27211417ab0538096e773bd9afa585651500839 (patch)
tree8478534a312ec63ad03215b1e4b4b87fc61f7519 /balls.h
parent36623f17ca2194fbb614a3cbce6b887734418f06 (diff)
downloadballs-e27211417ab0538096e773bd9afa585651500839.zip
variable radius
Diffstat (limited to 'balls.h')
-rw-r--r--balls.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/balls.h b/balls.h
index db59b50..051c185 100644
--- a/balls.h
+++ b/balls.h
@@ -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);