function TM = TM2_2(X,Y)
%UNTITLED Summary of this function goes here
%   Detailed explanation goes here

L=(   (X(end)-X(1))^2 + (Y(end)-Y(1))^2 )^0.5;

TM=[ (X(end)-X(1))/L (Y(end)-Y(1))/L; -(Y(end)-Y(1))/L ]; 

end

