I have 2 triangles ABC and PMN

I want to generalize the triangle PMN from points to lines, where any choice along that line will produce the same UV mapping for the triangle ABC

i am not sure on how i could do that, any advice would be appreciated.