✨ Added Path.shiftFractionAlong()
This commit is contained in:
parent
4c6c80e0ac
commit
34a17071c2
1 changed files with 5 additions and 0 deletions
|
@ -296,6 +296,11 @@ Path.prototype.shiftAlong = function(distance) {
|
|||
throw "Ran out of curve to shift along";
|
||||
};
|
||||
|
||||
/** Returns a point that lies at fraction along this */
|
||||
Path.prototype.shiftFractionAlong = function(fraction) {
|
||||
return this.shiftAlong(this.length() * fraction);
|
||||
};
|
||||
|
||||
/** Returns a point that lies at distance along bezier */
|
||||
function shiftAlongBezier(distance, bezier) {
|
||||
let steps = 100;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue