Fix PHP example.
@@ -7,7 +7,7 @@ include("tinyspline.php");
$spline = new BSpline(7);
// Setup control points.
-$ctrlp = $spline->ctrlp;
+$ctrlp = $spline->controlPoints;
$ctrlp[0] = -1.75; // x0
$ctrlp[1] = -1.0; // y0
$ctrlp[2] = -1.5; // x1
@@ -22,16 +22,16 @@ $ctrlp[10] = 0.0; // x5
$ctrlp[11] = 0.5; // y5
$ctrlp[12] = 0.5; // x6
$ctrlp[13] = 0.0; // y6
-$spline->ctrlp = $ctrlp;
+$spline->controlPoints = $ctrlp;
// Evaluate `spline` at u = 0.4.
-$result = $spline->evaluate(0.4)->result;
+$result = $spline->eval(0.4)->result;
echo "x = $result[0], y = $result[1]\n";
// Derive `spline` and subdivide it into a sequence of Bezier curves.
$beziers = $spline->derive()->toBeziers();
// Evaluate `beziers` at u = 0.3.
-$result = $beziers->evaluate(0.3)->result;
+$result = $beziers->eval(0.3)->result;
echo "x = $result[0], y = $result[1]\n";
?>
