MCPcopy Create free account
hub / github.com/Code-Bullet/Jump-King / getPointAtSegmentLength

Function getPointAtSegmentLength

libraries/p5.js:29791–29795  ·  view source on GitHub ↗
(p1x,p1y,c1x,c1y,c2x,c2y,p2x,p2y,length)

Source from the content-addressed store, hash-verified

29789}
29790
29791function getPointAtSegmentLength(p1x,p1y,c1x,c1y,c2x,c2y,p2x,p2y,length) {
29792 return (length == null) ? bezlen(p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y) :
29793 findDotsAtSegment(p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y,
29794 getTatLen(p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, length));
29795}
29796
29797function pointAtLength(path, length, istotal) {
29798 path = path2curve(path);

Callers 1

pointAtLengthFunction · 0.85

Calls 3

bezlenFunction · 0.85
findDotsAtSegmentFunction · 0.85
getTatLenFunction · 0.85

Tested by

no test coverage detected