Exemplo n.º 1
0
bool
SearchPointVector::IntersectsWith(const FlatRay &ray) const
{
  for (const_iterator it = begin(); it + 1 != end(); ++it) {
    const FlatRay r_seg(it->get_flatLocation(), (it + 1)->get_flatLocation());

    if (r_seg.intersects_distinct(ray))
      return true;
  }
  return false;
}