
## contains {#aspose.cad.PointF}

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


### Returns 


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


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


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


## contains {#aspose.cad.RectangleF}

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


### Returns 


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


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


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


## contains {#float-float}

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


### Returns 


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


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


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



### See Also
* module [`aspose.cad`](../../)
* class [`PointF`](/cad/python-net/aspose.cad/pointf)
* class [`RectangleF`](/cad/python-net/aspose.cad/rectanglef)
