---
title: "init(x:y:width:height:)"
framework: vision
role: symbol
role_heading: Initializer
path: "vision/normalizedrect/init(x:y:width:height:)"
---

# init(x:y:width:height:)

Creates a rectangle with the specified coordinates.

## Declaration

```swift
init(x: CGFloat, y: CGFloat, width: CGFloat, height: CGFloat)
```

## Parameters

- `x`: The x-coordinate of the rectangle’s lower-left corner.
- `y`: The y-coordinate of the rectangle’s lower-left corner.
- `width`: The width of the rectangle.
- `height`: The hight of the rectangle.

## See Also

### Creating a normalized rectangle

- [init(imageRect:in:)](vision/normalizedrect/init(imagerect:in:).md)
- [init(imageRect:in:normalizedTo:)](vision/normalizedrect/init(imagerect:in:normalizedto:).md)
- [init(normalizedRect:)](vision/normalizedrect/init(normalizedrect:).md)
- [fullImage](vision/normalizedrect/fullimage.md)
