public boolean contains (Point2D point)
	{
		double x = point.getX();
		double y = point.getY();
		if (x >= start.getX() && x <= end.getX() && y >= start.getY() && y <= end.getY())
		{
			if (isX)
				return true;
			else
			{
				// y = ax + b
				double _y = a * x + b;
				if (_y == y)
					return true;
			}
		}
		return false;
	}