\brief Update these bounds such they also contain other
| 133 | |
| 134 | /// \brief Update these bounds such they also contain other |
| 135 | void Merge(const BoundingBox& other) { |
| 136 | for (int i = 0; i < 4; i++) { |
| 137 | if (std::isnan(min[i]) || std::isnan(max[i]) || std::isnan(other.min[i]) || |
| 138 | std::isnan(other.max[i])) { |
| 139 | min[i] = std::numeric_limits<double>::quiet_NaN(); |
| 140 | max[i] = std::numeric_limits<double>::quiet_NaN(); |
| 141 | } else { |
| 142 | min[i] = std::min(min[i], other.min[i]); |
| 143 | max[i] = std::max(max[i], other.max[i]); |
| 144 | } |
| 145 | } |
| 146 | } |
| 147 | |
| 148 | std::string ToString() const; |
| 149 |
no outgoing calls