We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 017eb32 commit a69e7a9Copy full SHA for a69e7a9
v3/src/paths/curves/Curve.js
@@ -90,6 +90,23 @@ var Curve = new Class({
90
return points;
91
},
92
93
+ // Return an array of points, spaced out X distance pixels apart
94
+ getDistancePoints: function (distance)
95
+ {
96
+ var len = this.getLength();
97
+
98
+ var spaced = Math.max(1, len / distance);
99
100
+ return this.getSpacedPoints(spaced);
101
102
+ // Get the t value for 200 pixels along the curve
103
+ // var t = curve.getTFromDistance(200);
104
+ // = this.getUtoTmapping(0, distance, divisions)
105
106
+ // Get the point at t
107
+ // var p = curve.getPoint(t);
108
+ },
109
110
// Get sequence of points using getPointAt( u )
111
112
getSpacedPoints: function (divisions)
0 commit comments