code: function isPointInLine(point, [ lineBegin, lineEnd ]) {
  	let [ x, y ] = point;
  	let [ beginX, beginY ] = lineBegin;
  	let [ endX, endY ] = lineEnd;
  	if (x === beginX && y === beginY || (x === endX && y === endY)) {
  		return true;
  	} else if (beginX === endX) {
  		return x === beginX;
  	} else if (beginY === endY) {
  		return y === beginY;
  	} else if (roundToFiveSignificantDigits((beginX - x) * (endY - y))
  		=== roundToFiveSignificantDigits((endX - x) * (beginY - y))) {
  		return true;
  	} else {
  		return false;
  	}
  }
docs: Check if the given point is in a given line (Note not a line segment)
  
  @method isPointInLine
  @param {Number[]} point - coordinates of the point
  @param {Number[][]} [ lineBegin, lineEnd ] - coordinates of two points in the line
  @return {Boolean} - return true if the point is in line. Otherwise false.