1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-08-29 02:59:58 +02:00

some polish

This commit is contained in:
Pomax
2020-09-11 16:30:05 -07:00
parent ebe69a732a
commit 046b1024fa
371 changed files with 17445 additions and 58625 deletions

View File

@@ -70,7 +70,6 @@ drawCurveProjections() {
this.cyz.drawCurve(`#EEF`);
}
drawPoint(t) {
const {o, r, n, dt} = this.getFrenetVectors(t, this.points);
@@ -109,8 +108,8 @@ getFrenetVectors(t, originalPoints) {
const dt = d1curve.get(t);
const ddt = d1curve.derivative(t);
const o = curve.get(t);
const b = vec.normalize(vec.plus(dt, ddt));
const r = vec.normalize(vec.cross(b, dt));
const b = vec.plus(dt, ddt);
const r = vec.cross(b, dt);
const n = vec.normalize(vec.cross(r, dt));
return { o, dt, r, n };
}