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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user