Fixed many casting issues.

This commit is contained in:
YourWishes committed 2021-08-21 12:18:01 -07:00
1 parent 45690cb975
commit d95047398d
26 files changed
+133 -212

No files matched your search

+2 -2
View File
@@ -10,7 +10,7 @@
float vectorDistance2D(float x0, float y0, float x1, float y1) {
x0 = x1 - x0;
y0 = y1 - y0;
return sqrt(x0*x0 + y0*y0);
return (float)sqrt(x0*x0 + y0*y0);
}
@@ -20,5 +20,5 @@ float vectorDistance3D(
x0 = x1 - x0;
y0 = y1 - y0;
z0 = z1 - z0;
return sqrt(x0*x0 + y0*y0 + z0*z0);
return (float)sqrt(x0*x0 + y0*y0 + z0*z0);
}