
## intersect {#aspose.cad.Rectangle}

Replaces this [`Rectangle`](/cad/python-net/aspose.cad/rectangle) with the intersection of itself and the specified [`Rectangle`](/cad/python-net/aspose.cad/rectangle).



```python
def intersect(self, rect):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| rect | [`Rectangle`](/cad/python-net/aspose.cad/rectangle) | The [`Rectangle`](/cad/python-net/aspose.cad/rectangle) with which to intersect. |


## intersect {#aspose.cad.Rectangle-aspose.cad.Rectangle}

Returns a third [`Rectangle`](/cad/python-net/aspose.cad/rectangle) structure that represents the intersection of two other [`Rectangle`](/cad/python-net/aspose.cad/rectangle) structures. If there is no intersection, an empty [`Rectangle`](/cad/python-net/aspose.cad/rectangle) is returned.


### Returns 


A [`Rectangle`](/cad/python-net/aspose.cad/rectangle) that represents the intersection of `a` and `b`.


```python
def intersect(self, a, b):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| a | [`Rectangle`](/cad/python-net/aspose.cad/rectangle) | A first rectangle to intersect. |
| b | [`Rectangle`](/cad/python-net/aspose.cad/rectangle) | A second rectangle to intersect. |



### See Also
* module [`aspose.cad`](../../)
* class [`Rectangle`](/cad/python-net/aspose.cad/rectangle)
