mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-15 04:24:28 +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
|
//just in case to prevent an infinite loop
|
||||||
if (at <= 0) return 0.0f;
|
if (at <= 0) return 0.0f;
|
||||||
if (at >= length) return length;
|
if (at >= length) return 1.0f;
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
auto right = bz;
|
auto right = bz;
|
||||||
|
|
Loading…
Add table
Reference in a new issue