- pair A,B,C,D,E;unitsize(1cm);
- A=(0,0); C=(5,0); B=(1,1); D=(4,2);
- E=extension(A,B,C,D); // returns the intersection of lines AB and CD
- draw(B--A--C--D--cycle);
- draw(B--E--D,orange);
复制代码
pair A,B,C,D,E;unitsize(1cm);
A=(0,0); C=(5,0); B=(1,1); D=(4,2);
E=extension(A,B,C,D); // returns the intersection of lines AB and CD
draw(B--A--C--D--cycle);
draw(B--E--D,orange); |