function getPointAtQuadSegmentLength(x1, y1, cx, cy, x2, y2, t) {
  const t1 = 1 - t;
  return {
    x: (t1 ** 2) * x1
      + 2 * t1 * t * cx
      + (t ** 2) * x2,
    y: (t1 ** 2) * y1
      + 2 * t1 * t * cy
      + (t ** 2) * y2,
  };
}
Returns the {x,y} coordinates of a point at a
given length of a quadratic-bezier segment.

@see https://github.com/substack/point-at-length

@param {number} x1 the starting point X
@param {number} y1 the starting point Y
@param {number} cx the control point X
@param {number} cy the control point Y
@param {number} x2 the ending point X
@param {number} y2 the ending point Y
@param {number} t a [0-1] ratio
@returns {{x: number, y: number}} the requested {x,y} coordinates