\input fig4tex.tex

% 1. Definition of characteristic points
\figinit{cm}
%sommets du trapeze
\figpt 1:(0, 0)
\figpt 2:(8, 0)
\figpt 3:(2, -3)
\figpt 4:(5, -4)
\figptsaxes 5 : 1(0, 10, 0, 2)
\def\RAY{0.2}%
\figptsinterlinell 7 [3,\RAY,\RAY,0 ; 1,3]
\figptsinterlinell 8 [3,\RAY,\RAY,0 ; 4,3]
\figptsinterlinell 9 [4,\RAY,\RAY,0 ; 3,4]
\figptsinterlinell 10 [4,\RAY,\RAY,0 ; 2,4]
\figptbary 11 :[1,7 ;1,1]
\figptbary 12 :[8,9 ;1,1]
\figptbary 13 :[10,2 ;1,1]
%
% 2. Creation of the graphical file
\figdrawbegin{}
%dessin des cordes
\figdrawline[1,7]\figdrawline[8,9]\figdrawline[10,2]
\figdrawaxes 1(0, 10, 0, 2)
\figdrawcirc 3 (\RAY)
\figdrawcirc 4 (0.2)
\figdrawend
%
% 3. Writing text on the figure
\figvisu{\figBoxA}{}
{%\figshowpts[1,10]
\figwritew 1 :{$(0,0)$}(0.2)
\figwriten 2 :{$(d,0)$}(0.2)
\figwritene 3 :{$m_1 (x_1,y_1)$}(0.2)
\figwritee 4 :{$m_2 (x_2,y_2)$}(0.3)
\figwritesw 11 :$l_1$(0.5)
\figwritesw 12 :$l_2$(0.5)
\figwritese 13 :$l_3$(0.5)
\figwritese 5 :(0.2)
\figwritenw 6 :(0.2)
}
\centerline{\box\figBoxA}
\bye