1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-08-22 16:23:12 +02:00

fix for cubic tangent

This commit is contained in:
Pomax
2020-11-27 11:52:55 -08:00
parent 43fc3613b0
commit d872b9f89e
11 changed files with 21 additions and 21 deletions

View File

@@ -69,7 +69,7 @@ getQuadraticDerivative(t, points) {
}
getCubicDerivative(t, points) {
let mt = (1 - t), a = mt*mt, b = mt*t, c = t*t, d = [
let mt = (1 - t), a = mt*mt, b = 2*mt*t, c = t*t, d = [
{
x: 3 * (points[1].x - points[0].x),
y: 3 * (points[1].y - points[0].y)