mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-03-15 01:09:53 -04:00
Add missing Path#getPoint(length).
This commit is contained in:
parent
c836012d3d
commit
b0a1f4b1a9
1 changed files with 8 additions and 0 deletions
|
@ -258,6 +258,14 @@ var Path = this.Path = PathItem.extend({
|
||||||
}
|
}
|
||||||
return -1;
|
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
|
* Returns the tangent to the path at the given length as a vector
|
||||||
|
|
Loading…
Reference in a new issue