From b17eb6490ff0dc4901ca212b2f4b8ef8a15a9b07 Mon Sep 17 00:00:00 2001 From: thejinchao Date: Sat, 8 Mar 2025 19:24:44 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E4=B8=80=E6=B3=A8=E9=87=8A=E5=92=8C?= =?UTF-8?q?=E7=AE=97=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vuepress/public/js/bezier_quad.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/.vuepress/public/js/bezier_quad.js b/docs/.vuepress/public/js/bezier_quad.js index 60f875b..b7b3bbe 100644 --- a/docs/.vuepress/public/js/bezier_quad.js +++ b/docs/.vuepress/public/js/bezier_quad.js @@ -17,8 +17,8 @@ class QuadBezierLine { // Log[B + 2*A*t + 2*Sqrt[A]*Sqrt[A*t^2 + B*t + C]]))/(8*A^(3/2))) length(t) { let temp1 = Math.sqrt(this.C + t * (this.B + this.A * t)); - let temp2 = (2 * this.A * t * temp1 + this.B * (temp1 - Math.sqrt(this.C))); - let temp3 = Math.log(this.B + 2 * Math.sqrt(this.A) * Math.sqrt(this.C)); + let temp2 = (2 * this.A * t + this.B) * temp1 - this.B * Math.sqrt(this.C); + let temp3 = Math.log(this.B + 2 * Math.sqrt(this.A * this.C)); let temp4 = Math.log(this.B + 2 * this.A * t + 2 * Math.sqrt(this.A) * temp1); let temp5 = 2 * Math.sqrt(this.A) * temp2; let temp6 = (this.B * this.B - 4 * this.A * this.C) * (temp3 - temp4);