---
title: "init(r:theta:)"
framework: vision
role: symbol
role_heading: Initializer
path: "vision/vnvector/init(r:theta:)"
---

# init(r:theta:)

Creates a new vector in polar coordinate space.

## Declaration

```swift
convenience init(r: Double, theta: Double)
```

## Parameters

- `r`: The length of the vector.
- `theta`: The angle that the vector forms with the positive direction of the x-axis.

## See Also

### Creating a Vector

- [init(byAdding:to:)](vision/vnvector/init(byadding:to:).md)
- [init(bySubtracting:from:)](vision/vnvector/init(bysubtracting:from:).md)
- [init(byMultiplying:byScalar:)](vision/vnvector/init(bymultiplying:byscalar:).md)
- [init(vectorHead:tail:)](vision/vnvector/init(vectorhead:tail:).md)
- [init(xComponent:yComponent:)](vision/vnvector/init(xcomponent:ycomponent:)-3p5k3.md)
- [zero](vision/vnvector/zero.md)
