code: function (x1, y1, x2, y2) {
  		var minX = this.minX, minY = this.minY, maxX = this.maxX, maxY = this.maxY;
  		if ((x1 <= minX && x2 <= minX) || (y1 <= minY && y2 <= minY) || (x1 >= maxX && x2 >= maxX) || (y1 >= maxY && y2 >= maxY))
  			return false;
  		var m = (y2 - y1) / (x2 - x1);
  		var y = m * (minX - x1) + y1;
  		if (y > minY && y < maxY) return true;
  		y = m * (maxX - x1) + y1;
  		if (y > minY && y < maxY) return true;
  		var x = (minY - y1) / m + x1;
  		if (x > minX && x < maxX) return true;
  		x = (maxY - y1) / m + x1;
  		if (x > minX && x < maxX) return true;
  		return false;
  	}
docs: Returns true if the axis aligned bounding box intersects the line segment.