Swaps the coordinates. Equivalent to a reflection across the `y = x` line. */
| 252 | Equivalent to a reflection across the `y = x` line. |
| 253 | */ |
| 254 | Vec flip() const { |
| 255 | return Vec(y, x); |
| 256 | } |
| 257 | Vec min(Vec b) const { |
| 258 | return Vec(std::fmin(x, b.x), std::fmin(y, b.y)); |
| 259 | } |