Add missing Path#getPoint(length).

This commit is contained in:
Jürg Lehni 2011-04-27 19:28:39 +01:00
parent c836012d3d
commit b0a1f4b1a9

View file

@ -258,6 +258,14 @@ var Path = this.Path = PathItem.extend({
}
return -1;
},
/**
* Returns the point of the path at the given length.
*/
getPoint: function(length) {
var loc = this.getLocation(length);
return loc && loc.getPoint();
},
/**
* Returns the tangent to the path at the given length as a vector