I want to create a rectangular polygon using two points as guides.
So let's say a journey starts in Egypt and ends in London, my polygon should have 4 points:
- 10 miles further from London than Egypt is, following the line between them (roughly south in this example).
- Halfway between the two cities but 50 miles at right angles from the line that joins them.
- Like the above point but 50 miles in the other direction.
- 20 miles further from Egypt than London is, following the line between them (roughly north in this example).
I'll end up with a rough diamond shaped polygon that would completely contain the straight line journey from Egypt to London.
I hope this makes sense; any help for how I can calculate the 4 points is appreciated.

I have also asked this on gis.stackexchange.com but as I only need 2D and the fact that its map coordinates is irrelevant. I thought I would ask it here as well.
EDIT:
Thanks to Ju'x i have come a long way, but the outer points dont seem to be at 90 degrees to the mid point (image here: https://i.sstatic.net/lxX9l.png). I am pretty sure i have followed the answer given correctly....