src/posts/sol-lewitt-square-partitioned/step-1-sketch.js
// find coordinates of a point on line at distance k
find coordinates of a point on line at distance k
find coordinates of a point on line at distance k
function pointCoordinatesOnLine(pointA, pointB, k) {
    const x = pointA[0] + k * (pointB[0] - pointA[0]);
    const y = pointA[1] + k * (pointB[1] - pointA[1]);
    return [x, y];
  }
function pointCoordinatesOnLine ( pointA , pointB , k ) { const x = pointA [ 0 ] + k * ( pointB [ 0 ] - pointA [ 0 ] ) ; const y = pointA [ 1 ] + k * ( pointB [ 1 ] - pointA [ 1 ] ) ; return [ x , y ] ; }
find coordinates of a point on line at distance k
find coordinates of a point on line at distance k