| 452 | |
| 453 | |
| 454 | inline Vec Vec::clamp(Rect bound) const { |
| 455 | return Vec( |
| 456 | math::clamp(x, bound.pos.x, bound.pos.x + bound.size.x), |
| 457 | math::clamp(y, bound.pos.y, bound.pos.y + bound.size.y) |
| 458 | ); |
| 459 | } |
| 460 | |
| 461 | inline Vec Vec::clampSafe(Rect bound) const { |
| 462 | return Vec( |
no test coverage detected