summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2024-10-30 19:26:46 -0400
committerSam Anthony <sam@samanthony.xyz>2024-10-30 19:26:46 -0400
commitb9d0dcbdf0d04e36d176c9eec0a733f403c65fb5 (patch)
treeb822d0b42524b15b8349e31c13b149c4ade7ee4f
parent27b33c92d5ce70a2d3af1f8e192bf204f86530a4 (diff)
downloadballs-b9d0dcbdf0d04e36d176c9eec0a733f403c65fb5.zip
floating point constants
-rw-r--r--balls.cl6
1 files changed, 3 insertions, 3 deletions
diff --git a/balls.cl b/balls.cl
index 22c3606..41265b3 100644
--- a/balls.cl
+++ b/balls.cl
@@ -1,6 +1,6 @@
-#define G_FACTOR 3600.0
-#define G (9.81 / G_FACTOR)
-#define DENSITY 1500.0
+#define G_FACTOR 3600.0f
+#define G (9.81f / G_FACTOR)
+#define DENSITY 1500.0f
float mass(float radius);
int isCollision(float2 p1, float r1, float2 p2, float r2);