function testLinePoint(line, point) {
  if (lineHasNoLength(line)) {
    return false;
  }

  const [p1, p2] = lineToPoints(line);
  return isPointOnLine(p1, p2, point);
}
/**
 * Test if a Line contains a Point. If so, returns true and false otherwise.
 * Line must have length greater then 0.
 * @private
 * @param {object} line
 * @param {number} line.x1 - x-coordinate
 * @param {number} line.y1 - y-coordinate
 * @param {number} line.x1 - x-coordinate
 * @param {number} line.y1 - y-coordinate
 * @param {object} point
 * @param {number} point.x - x-coordinate
 * @param {number} point.y - y-coordinate
 * @return {boolean} true if line contains point
 */
Test if a Line contains a Point. If so, returns true and false otherwise.
Line must have length greater then 0.
Test if a Line contains a Point . If so returns true and false otherwise . Line must have length greater then 0 .
function testLinePoint(line, point) {
  if (lineHasNoLength(line)) {
    return false;
  }
  const [p1, p2] = lineToPoints(line);
  return isPointOnLine(p1, p2, point);
}
function testLinePoint ( line , point ) { if ( lineHasNoLength ( line ) ) { return false ; } const [ p1 , p2 ] = lineToPoints ( line ) ; return isPointOnLine ( p1 , p2 , point ) ; }
Test if a Line contains a Point.
Test if a Line contains a Point .