---
title: "RectF"
canonical_url: "https://www.nutrient.io/api/python/types/rect-f/"
md_url: "https://www.nutrient.io/api/python/types/rect-f.md"
last_updated: "2026-07-15T14:46:57.766Z"
description: "Represents a rectangle with float coordinates."
---

Represents a rectangle with float coordinates.

```python

from nutrient_sdk.rectf import RectF

```

## Construction

```python

RectF(left: float, top: float, right: float, bottom: float)

```

## Fields

| Field    | Type    | Description                             |
| -------- | ------- | --------------------------------------- |
| `left`   | `float` | The left coordinate of the rectangle.   |
| `top`    | `float` | The top coordinate of the rectangle.    |
| `right`  | `float` | The right coordinate of the rectangle.  |
| `bottom` | `float` | The bottom coordinate of the rectangle. |

## Usage Example

```python

from nutrient_sdk.rectf import RectF

value = RectF(left=36.0, top=72.0, right=288.0, bottom=144.0)

```

---

## Related pages

- [All public classes import directly from the top-level package:](/api/python/types.md)
- [Color](/api/python/types/color.md)
- [Vec2f](/api/python/types/vec2f.md)

