Shape::intersects()
Check if the shape intersects with another shape.
Syntax
Java
.intersects(other)
Parameters
| Name | Data Type | Description |
|---|---|---|
| other | Shape | the other shape to check intersection with |
Return
boolean

Check if the shape intersects with another shape.
.intersects(other)
| Name | Data Type | Description |
|---|---|---|
| other | Shape | the other shape to check intersection with |
boolean