Is it possible to define a point when I have two paths such as:
beginfig(1);
u := 1cm;
path p[];
p0 := (1u,3u)--(2u,2u);
p1 := (2u,0)--(3u,2u);
for i=p0,p1: draw i; endfor;
endfig;
end
so that if continuing p0 to the p1, the wanted point would be there.

I've tried the dir* commands, but all the examples I've found seem to either be overly complex for my understanding, or use them in curve definitions.



directionoperator? Section 9.2 of the Metapost manual. – egreg Jan 14 '13 at 18:13z[i]-(x[i+1],0) = whatever*direction t[i] of fun;as a basis:z0 = whatever*direction p0 of p1;, but that gave meNot implemented: postcontrol(path)of(path).. The manual says that the first argument should benumeric, but I don't know how to extract the direction of the path as anumeric. – morbusg Jan 14 '13 at 19:29