Comment obtenir les coins de 2 points sur une matrice

say you have 2 points, (x1,y1) and (x2,y2)

to get their corners, criss cross the x's and y's:

corner1 = x1,y2
corner2 = x2,y1

if the original points are on the same x-axis or same y-axis,
the criss cross result will give you back the original points

QuietHumility