How to contruct the mediator of a line