Constructs a Rect from a top-left and bottom-right vector. */
| 308 | /** Constructs a Rect from a top-left and bottom-right vector. |
| 309 | */ |
| 310 | static Rect fromMinMax(Vec a, Vec b) { |
| 311 | return Rect(a, b.minus(a)); |
| 312 | } |
| 313 | /** Constructs a Rect from any two opposite corners. |
| 314 | */ |
| 315 | static Rect fromCorners(Vec a, Vec b) { |