ELASTICPATHING/SOURCECODE/UbiComp2014/Elastic_Pathing_Code/navigator.rb
def pathIntersects(p)
    cur = p.lastTwo()
    if (nil == cur[0])
      return intersect(cur[1])
    else
      #Get any nodes the intersect with cur[1] and is not cur[0]
      return intersect(cur[1]).select {|node| node.nid != cur[0].nid}
    end
  end
#Find next possible points for a path
Find next possible points for a path
Find next possible points for a path
def pathIntersects(p)
    cur = p.lastTwo()
    if (nil == cur[0])
      return intersect(cur[1])
    else
      return intersect(cur[1]).select {|node| node.nid != cur[0].nid}
    end
  end
def pathIntersects ( p ) cur = p . lastTwo ( ) if ( nil == cur [ 0 ] ) return intersect ( cur [ 1 ] ) else return intersect ( cur [ 1 ] ) . select { | node | node . nid != cur [ 0 ] . nid } end end
Find next possible points for a path
Find next possible points for a path
#Get any nodes the intersect with cur[1] and is not cur[0]
p