Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bae3d708 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Spline: Fix monotonicity constraint"

parents cd52950a 50fb1aeb
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -166,10 +166,10 @@ public abstract class Spline {
                                + "monotonic Y values.");
                    }
                    float h = (float) Math.hypot(a, b);
                    if (h > 9f) {
                    if (h > 3f) {
                        float t = 3f / h;
                        m[i] = t * a * d[i];
                        m[i + 1] = t * b * d[i];
                        m[i] *= t;
                        m[i + 1] *= t;
                    }
                }
            }