Home > src > BN_pol_rec > functions > isCrossing.m

isCrossing

PURPOSE ^

coordinates of x y

SYNOPSIS ^

function [crossingPoint] = isCrossing(x,y,nodeList)

DESCRIPTION ^

coordinates of x y 
bool = true if crossing

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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

Generated on Wed 16-Mar-2005 09:17:47 by m2html © 2003