- Get a location line of the wall, get it’s total witdh.
- Build wall lines, using location line and offset (wall’s width)
- Get facing vector of the door.
- Project points to wall line according to facing vector of the door.
- Build lines from points.
In short, you just move thershold line to opposite wall’s line, using door’s facing vector.