func OnLineHeader(){ output(LH); } func OnTrace(){ x = Tr.SrPtXC - Tr.RcPtXC; y = Tr.SrPtYC - Tr.RcPtYC; Tr.DstSgn = sqrt ( x*x + y*y ); Tr.DstUsg = Tr.DstSgn; output(Tr); }