diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2024-11-02 18:28:03 -0400 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2024-11-02 18:28:03 -0400 |
| commit | 68212636f523e060880c1e21f7ae9bc4abada571 (patch) | |
| tree | ab8f76e891915d246115e6678458885b000014c1 /geo.c | |
| parent | 99ea1bd1d3e0493c5bca3322886cef53bb113810 (diff) | |
| download | balls-68212636f523e060880c1e21f7ae9bc4abada571.zip | |
rename Rectangle->Rect for windows compatibility
Diffstat (limited to 'geo.c')
| -rw-r--r-- | geo.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -13,8 +13,8 @@ isCollision(Vector p1, float r1, Vector p2, float r2) { return (dx*dx + dy*dy) <= rhs*rhs; } -Rectangle -insetRect(Rectangle r, float n) { +Rect +insetRect(Rect r, float n) { r.min.x += n; r.min.y += n; @@ -26,7 +26,7 @@ insetRect(Rectangle r, float n) { /* Generate n circle coordinates within bounds such that no circles overlap. */ Vector * -noOverlapPositions(int n, Rectangle bounds, float radius) { +noOverlapPositions(int n, Rect bounds, float radius) { Vector *ps; int i, j; |