equals method
equals
Determines whether the specified rectangle is equal to the current rectangle.
def equals(self, obj):
...
| Parameter | Type | Description |
|---|---|---|
| obj | Any |
The rectangle to compare with the current rectangle. |
Returns: bool: True if the specified rectangle is equal to the current rectangle; otherwise, False.
See Also
- class
Rectangle