summaryrefslogtreecommitdiffstats
path: root/balls.h
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2024-11-02 18:28:03 -0400
committerSam Anthony <sam@samanthony.xyz>2024-11-02 18:28:03 -0400
commit68212636f523e060880c1e21f7ae9bc4abada571 (patch)
treeab8f76e891915d246115e6678458885b000014c1 /balls.h
parent99ea1bd1d3e0493c5bca3322886cef53bb113810 (diff)
downloadballs-68212636f523e060880c1e21f7ae9bc4abada571.zip
rename Rectangle->Rect for windows compatibility
Diffstat (limited to 'balls.h')
-rw-r--r--balls.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/balls.h b/balls.h
index d796e5c..21d8bc1 100644
--- a/balls.h
+++ b/balls.h
@@ -4,7 +4,7 @@ typedef struct {
typedef struct {
Vector min, max;
-} Rectangle;
+} Rect;
/*
* A partition of the set of all possible collisions between pairs of balls.
@@ -24,8 +24,8 @@ void freePartition(Partition part);
void printPartition(Partition part);
int isCollision(Vector p1, float r1, Vector p2, float r2);
-Rectangle insetRect(Rectangle r, float n);
-Vector *noOverlapPositions(int n, Rectangle bounds, float radius);
+Rect insetRect(Rect r, float n);
+Vector *noOverlapPositions(int n, Rect bounds, float radius);
float randFloat(float lo, float hi);
-Vector randPtInRect(Rectangle r);
+Vector randPtInRect(Rect r);