1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-08-30 19:50:01 +02:00

graphics-api docs

This commit is contained in:
Pomax
2020-09-19 12:29:43 -07:00
parent 7bf5a223bf
commit 7c530fee56
31 changed files with 420 additions and 103 deletions

View File

@@ -53,7 +53,7 @@ computeCurvature(curve, t) {
dd = curve.dderivative(t),
num = d.x * dd.y - d.y * dd.x,
qdsum = d.x * d.x + d.y * d.y,
dnm = pow(qdsum, 3 / 2);
dnm = qdsum ** 3/2;
if (num === 0 || dnm === 0) return 0;