Fix Octave example.
@@ -7,7 +7,7 @@ tinyspline
spline = tinyspline.BSpline(7);
# Setup control points.
-ctrlp = spline.ctrlp;
+ctrlp = spline.controlPoints;
ctrlp(1) = -1.75; # x0
ctrlp(2) = -1.0; # y0
ctrlp(3) = -1.5; # x1
@@ -22,10 +22,10 @@ ctrlp(11) = 0.0; # x5
ctrlp(12) = 0.5; # y5
ctrlp(13) = 0.5; # x6
ctrlp(14) = 0.0; # y6
-spline.ctrlp = ctrlp;
+spline.controlPoints = ctrlp;
# Evaluate `spline` at u = 0.4 using 'evaluate'.
-result = spline.evaluate(0.4).result;
+result = spline.eval(0.4).result;
printf("x = %d, y = %d\n", result(1), result(2))
# Derive `spline` and subdivide it into a sequence of Bezier curves.
