Apparatus, computer-aided data-processing algorithm, and computer storage medium for positioning an endovascular device in or near the heart