mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-12 07:32:20 +00:00
common bezier: code refactoring.
use a zero ranged macro.
This commit is contained in:
parent
e358675d61
commit
c6b3f78eca
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ float bezAt(const Bezier& bz, float at)
|
||||||
bezSplitLeft(right, t, left);
|
bezSplitLeft(right, t, left);
|
||||||
len = bezLength(left);
|
len = bezLength(left);
|
||||||
|
|
||||||
if (fabs(len - at) < 1e-4 || fabs(smallest - biggest) < FLT_EPSILON) {
|
if (fabs(len - at) < FLT_EPSILON || fabs(smallest - biggest) < FLT_EPSILON) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue