diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2024-10-30 19:26:46 -0400 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2024-10-30 19:26:46 -0400 |
| commit | b9d0dcbdf0d04e36d176c9eec0a733f403c65fb5 (patch) | |
| tree | b822d0b42524b15b8349e31c13b149c4ade7ee4f /balls.cl | |
| parent | 27b33c92d5ce70a2d3af1f8e192bf204f86530a4 (diff) | |
| download | balls-b9d0dcbdf0d04e36d176c9eec0a733f403c65fb5.zip | |
floating point constants
Diffstat (limited to 'balls.cl')
| -rw-r--r-- | balls.cl | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |