mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-14 20:14:37 +00:00
common/bezier: fix a wrong computation.
the value should be normalized.
This commit is contained in:
parent
86467481d1
commit
309f355c60
1 changed files with 1 additions and 1 deletions
|
@ -116,7 +116,7 @@ float bezAt(const Bezier& bz, float at, float length)
|
|||
|
||||
//just in case to prevent an infinite loop
|
||||
if (at <= 0) return 0.0f;
|
||||
if (at >= length) return length;
|
||||
if (at >= length) return 1.0f;
|
||||
|
||||
while (true) {
|
||||
auto right = bz;
|
||||
|
|
Loading…
Add table
Reference in a new issue