point-in-line
Returns a point at length t
on a given line (two points).
A ----t-------B
Installation
npm i point-in-line --save
Usage
var pointInLine = ; var center = x: windowinnerWidth * 05 y: windowinnerHeight * 05 ; var p = x: 127 y: 43 ; var p1 = ; // Point at 50% of the line var p2 = ; // point at twice the length of the line