| # | Line 76 | Line 76 | std::pair<Vector3d, Vector3d> CompositeShape::getBox() | |
|---|---|---|
| 76 | std::pair<Vector3d, Vector3d> boundary = (*iter)->getBox(); | |
| 77 | for (++iter; iter != shapes_.end(); ++iter) { | |
| 78 | std::pair<Vector3d, Vector3d> currBoundary = (*iter)->getBox(); | |
| 79 | < | swap_if(boundary.first, currBoundary.first, std::less<double>()); |
| 80 | < | swap_if(boundary.second, currBoundary.second, std::greater<double>()); |
| 79 | > | swap_if(boundary.first, currBoundary.first, std::greater<double>()); |
| 80 | > | swap_if(boundary.second, currBoundary.second, std::less<double>()); |
| 81 | } | |
| 82 | ||
| 83 | return boundary; | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines |
| > | Changed lines |