Home > src > PF > isParticleOnRoad.m

isParticleOnRoad

PURPOSE ^

SYNOPSIS ^

function [bool_] = isParticleOnRoad(part_pos)

DESCRIPTION ^

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 
0002 
0003 function       [bool_] = isParticleOnRoad(part_pos)
0004 bool_ = 0;
0005 global roads_struct;
0006 k = [];
0007  for i = 1:length(roads_struct.positionRoad_no(:,1))
0008     if roads_struct.positionRoad_no(i,1) == part_pos(1)
0009         if roads_struct.positionRoad_no(i,2) == part_pos(2)
0010             bool_ = 1;
0011             return;
0012         end;
0013     end;
0014 end;
0015

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