(float l, float t, float w, float h)
| 55 | } |
| 56 | |
| 57 | @NotNull @Contract("_, _, _, _ -> new") |
| 58 | public static Rect makeXYWH(float l, float t, float w, float h) { |
| 59 | if (w < 0) |
| 60 | throw new IllegalArgumentException("Rect::makeXYWH expected w >= 0, got: " + w); |
| 61 | if (h < 0) |
| 62 | throw new IllegalArgumentException("Rect::makeXYWH expected h >= 0, got: " + h); |
| 63 | return new Rect(l, t, l + w, t + h); |
| 64 | } |
| 65 | |
| 66 | @Nullable |
| 67 | public Rect intersect(@NotNull Rect other) { |
no outgoing calls