Well, the easiest solution (but very sub-optimal and very case-specific) would be to calculate the middle point between points A and B, create a entity there (box for example), and scale it on the right axis so it starts and ends in points A and B.

The better solution which I suggested above would be to create your own geometry - these links should give you a general idea: Link 1 Link 2