How to bend tube so it's ends fit given positions? I am trying to bend the tube, so it fits the end caps.



The bent tube is made from the straight one at the right. I wish would tube reach the end caps correctly, but failing. 

In another attempt, I used a "by-eye" approach.

First I adjusted limits and moved the bent tube appropriately:



Then I applied the modifier and removed the unneeded faces:



This works, but I'd like to use a more precise solution. Can anyone think of a way to do this more precisely?
Its not the precise awnser to your question using "curves".

I suggest you use the "spin tool" to get the desired "precise" effect and control.

Add a circle.



In front view.

Go to edit mode.

Move the circle to which point you want.



Press spin. (It wil spin around the midpoint as centerpoint)



And adjust your desired settings.