(float l, float t, float r, float b)
| 31 | } |
| 32 | |
| 33 | @NotNull @Contract("_, _, _, _ -> new") |
| 34 | public static Rect makeLTRB(float l, float t, float r, float b) { |
| 35 | if (l > r) |
| 36 | throw new IllegalArgumentException("Rect::makeLTRB expected l <= r, got " + l + " > " + r); |
| 37 | if (t > b) |
| 38 | throw new IllegalArgumentException("Rect::makeLTRB expected t <= b, got " + t + " > " + b); |
| 39 | return new Rect(l, t, r, b); |
| 40 | } |
| 41 | |
| 42 | @NotNull @Contract("_, _ -> new") |
| 43 | public static Rect makeWH(float w, float h) { |
no outgoing calls