mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Fix Path#getTangentAt example.
This commit is contained in:
parent
2d103dd792
commit
2666e60f28
1 changed files with 5 additions and 4 deletions
|
@ -1331,10 +1331,11 @@ var Path = this.Path = PathItem.extend(/** @lends Path# */{
|
|||
* // Make the tangent vector 60pt long:
|
||||
* tangent.length = 60;
|
||||
*
|
||||
* var line = new Path({
|
||||
* segments: [point, point + tangent],
|
||||
* strokeColor: 'red'
|
||||
* })
|
||||
* var line = new Path({
|
||||
* segments: [point, point + tangent],
|
||||
* strokeColor: 'red'
|
||||
* })
|
||||
* }
|
||||
*/
|
||||
getTangentAt: function(offset, isParameter) {
|
||||
var loc = this.getLocationAt(offset, isParameter);
|
||||
|
|
Loading…
Reference in a new issue