MCPcopy Index your code
hub / github.com/NikLever/ThreeJS-PathEditor / calcLineMidPoint

Method calcLineMidPoint

geometry.js:51–57  ·  view source on GitHub ↗
( a, b )

Source from the content-addressed store, hash-verified

49 }
50
51 static calcLineMidPoint( a, b ){
52 const pt = {};
53 pt.x = (a.x - b.x)/2 + b.x;
54 pt.y = (a.y - b.y)/2 + b.y;
55
56 return pt;
57 }
58
59 static calcPointAlongLine( a, b, delta ){
60 const pt = {};

Callers 2

changeNodeMethod · 0.80
addNodeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected