Lines Matching refs:rs
28 * \param rs: vector of Rect.
31 * [(A = rs[i], B = rs[j]) for i,J in enumerate(pairs) for j in J]
35 std::vector<std::vector<unsigned> > sweep_bounds(std::vector<Rect> rs, Dim2 d) {
36 std::vector<Event> events; events.reserve(rs.size()*2);
37 std::vector<std::vector<unsigned> > pairs(rs.size());
39 for(unsigned i = 0; i < rs.size(); i++) {
40 events.push_back(Event(rs[i][d].min(), i, false));
41 events.push_back(Event(rs[i][d].max(), i, true));
55 if(rs[jx][1-d].intersects(rs[ix][1-d])) {
72 * [(A = rs[i], B = rs[j]) for i,J in enumerate(pairs) for j in J]