Introduction - If you have any usage issues, please Google them yourself
DistanJudg( vLayer1(counter,1:2),vLayer1(counter+1,1:2),...
vLayer2(mIndexTemp,1:2),vLayer2(mIndexTemp+1,1:2) )
f(counter,3,:) = vLayer2(mIndexTemp+1,:)
if vTemp2 ==-1
f(counter,3,:) = vLayer1(counter+1,:)
end