
## contains {#aspose.cad.Point}

Determines if the specified point is contained within this [`Rectangle`](/cad/python-net/aspose.cad/rectangle) structure.


### Returns 


This method returns true if the point represented by `point` is contained within this [`Rectangle`](/cad/python-net/aspose.cad/rectangle) structure; otherwise false.


```python
def contains(self, point):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| point | [`Point`](/cad/python-net/aspose.cad/point) | The [`Point`](/cad/python-net/aspose.cad/point) to test. |


## contains {#aspose.cad.Rectangle}

Determines if the rectangular region represented by `rect` is entirely contained within this [`Rectangle`](/cad/python-net/aspose.cad/rectangle) structure.


### Returns 


This method returns true if the rectangular region represented by `rect` is entirely contained within this [`Rectangle`](/cad/python-net/aspose.cad/rectangle) structure; otherwise false.


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


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


## contains {#int-int}

Determines if the specified point is contained within this [`Rectangle`](/cad/python-net/aspose.cad/rectangle) structure.


### Returns 


This method returns true if the point defined by `x` and `y` is contained within this [`Rectangle`](/cad/python-net/aspose.cad/rectangle) structure; otherwise false.


```python
def contains(self, x, y):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| x | int | The x-coordinate of the point to test. |
| y | int | The y-coordinate of the point to test. |



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