Skip to content

Commit 649fa88

Browse files
committed
Added Spline.addPoint.
1 parent 8a4fff9 commit 649fa88

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

v3/src/paths/curves/spline/SplineCurve.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,15 @@ var SplineCurve = new Class({
2323
this.points = points;
2424
},
2525

26+
addPoint: function (x, y)
27+
{
28+
var vec = new Vector2(x, y);
29+
30+
this.points.push(vec);
31+
32+
return vec;
33+
},
34+
2635
getStartPoint: function ()
2736
{
2837
return this.points[0];

0 commit comments

Comments
 (0)