Update Rect_Geo.mdx
This commit is contained in:
parent
df576bae02
commit
fce814c8f7
|
@ -89,7 +89,7 @@ To create a new rectangle, use the following constructor:
|
|||
Rectangle newRect = new Rectangle(x, y, width, height);
|
||||
```
|
||||
|
||||
The `Rectangle` class supports numerous useful methods.
|
||||
The `Rectangle` class supports numerous useful methods, including the following:
|
||||
|
||||
- `firstRect.intersects(secondRect)` checks if two rectangles intersect.
|
||||
- `firstRect.union(secondRect)` returns a rectangle representing the union of two rectangles.
|
||||
|
|
Reference in a new issue