Cleanup: function style casts for C++

This commit is contained in:
2023-01-11 13:03:53 +11:00
parent 494c3ba063
commit 8367f2bffc
10 changed files with 39 additions and 39 deletions

View File

@@ -70,7 +70,7 @@ static void edituv_get_edituv_stretch_angle(float auv[2][2],
#if 0 /* here for reference, this is done in shader now. */
float uvang = angle_normalized_v2v2(auv0, auv1);
float ang = angle_normalized_v3v3(av0, av1);
float stretch = fabsf(uvang - ang) / (float)M_PI;
float stretch = fabsf(uvang - ang) / float(M_PI);
return 1.0f - pow2f(1.0f - stretch);
#endif
}