coordinates of x y bool = true if crossing
0001 0002 function [crossingPoint] = isCrossing(x,y,nodeList) 0003 %coordinates of x y 0004 %bool = true if crossing 0005 crossingPoint = []; 0006 idx_row = find(nodeList(:,1) == x); 0007 for i = 1:length(idx_row) 0008 if nodeList(idx_row(i),2) == y 0009 crossingPoint = nodeList(idx_row(i),:); 0010 return 0011 end; 0012 end; 0013 0014 0015