1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-08-16 21:54:06 +02:00

Rational bezier (#208)

* .

* meh

* rational beziers
This commit is contained in:
Pomax
2019-08-18 17:13:27 -07:00
committed by GitHub
parent d8dffb0cda
commit 782c509850
28 changed files with 3041 additions and 2466 deletions

View File

@@ -42,6 +42,12 @@ var Reordering = {
var Mt = transpose(M);
var Mc = multiply(Mt, M);
var Mi = invert(Mc);
if (!Mi) {
console.error('MtM has no inverse?');
return curve;
}
var V = multiply(Mi, Mt);
// And then we map our k-order list of coordinates