I am trying to write a program in Python to draw the bisectors between two points in L1 and L∞ metric. Please find more information about the metrics here. If (x1,y1) and (x2,y2) are the two points, then I feel the equation of the bisector in L1 metric should be:
|x-x1|+|y-y1| = |x-x2| + |y-y2|
In the L∞, I feel the equation should be:
max(|x-x1|,|y-y1|) = max(|x-x2|,|y-y2|)
If absolute values were not part of the equation, I would have simplified it to a form y=ax+b and plotted the values of (x,y) over a range of x. Can you please guide me in transforming this into code?