Cleanup: use enum literals, order likely case first in polyfill_2d

This commit is contained in:
Campbell Barton 2023-02-08 17:03:21 +11:00
parent 09eb4fe19a
commit d781e52ee0
1 changed files with 5 additions and 6 deletions

View File

@ -160,14 +160,13 @@ static void pf_ear_tip_cut(PolyFill *pf, PolyIndex *pi_ear_tip);
BLI_INLINE eSign signum_enum(float a)
{
if (UNLIKELY(a == 0.0f)) {
return 0;
}
if (a > 0.0f) {
return 1;
return CONVEX;
}
return -1;
if (UNLIKELY(a == 0.0f)) {
return TANGENTIAL;
}
return CONCAVE;
}
/**