From b9d0dcbdf0d04e36d176c9eec0a733f403c65fb5 Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Wed, 30 Oct 2024 19:26:46 -0400 Subject: floating point constants --- balls.cl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'balls.cl') 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); -- cgit v1.2.3