mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -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:
|
* // Make the tangent vector 60pt long:
|
||||||
* tangent.length = 60;
|
* tangent.length = 60;
|
||||||
*
|
*
|
||||||
* var line = new Path({
|
* var line = new Path({
|
||||||
* segments: [point, point + tangent],
|
* segments: [point, point + tangent],
|
||||||
* strokeColor: 'red'
|
* strokeColor: 'red'
|
||||||
* })
|
* })
|
||||||
|
* }
|
||||||
*/
|
*/
|
||||||
getTangentAt: function(offset, isParameter) {
|
getTangentAt: function(offset, isParameter) {
|
||||||
var loc = this.getLocationAt(offset, isParameter);
|
var loc = this.getLocationAt(offset, isParameter);
|
||||||
|
|
Loading…
Reference in a new issue