There are multiple ways to do this, e.g. with vectors or with coordinatesystems. I think the easiest approach is using vectors:
Using your start- and endpoint create a vector (Vector.ByTwoPoints).
Using Geometry.Translate, the one with only the geometry and direction input, translate your geometry according to your vector (direction) and its length.