Fixed many casting issues.

This commit is contained in:
2021-08-21 12:18:01 -07:00
parent 45690cb975
commit d95047398d
26 changed files with 133 additions and 212 deletions

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);
}