MCPcopy Create free account
hub / github.com/NikLever/ThreeJS-PathEditor / calcPointAlongLine

Method calcPointAlongLine

geometry.js:59–65  ·  view source on GitHub ↗
( a, b, delta )

Source from the content-addressed store, hash-verified

57 }
58
59 static calcPointAlongLine( a, b, delta ){
60 const pt = {};
61 pt.x = (a.x - b.x)* delta + b.x;
62 pt.y = (a.y - b.y) * delta + b.y;
63
64 return pt;
65 }
66
67 static calcDistanceBetweenTwoPoints( a, b ){
68 const dx = a.x - b.x;

Callers 2

changeNodeMethod · 0.80
addNodeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected