---
title: "init(x:)"
framework: coreimage
role: symbol
role_heading: Initializer
path: "coreimage/civector/init(x:)"
---

# init(x:)

Initialize a Core Image vector object with one value.

## Declaration

```swift
convenience init(x: CGFloat)
```

## Parameters

- `x`: The value for the first position in the vector.

## Return Value

Return Value  An initialized CIVector object of length 1.

## See Also

### Initializing a Vector

- [init(values:count:)](coreimage/civector/init(values:count:).md)
- [init(x:y:)](coreimage/civector/init(x:y:)-4grr.md)
- [init(x:y:z:)](coreimage/civector/init(x:y:z:)-zais.md)
- [init(x:y:z:w:)](coreimage/civector/init(x:y:z:w:)-75emo.md)
- [init(string:)](coreimage/civector/init(string:).md)
- [init(cgAffineTransform:)](coreimage/civector/init(cgaffinetransform:)-6o8gl.md)
- [init(cgPoint:)](coreimage/civector/init(cgpoint:)-8cf9j.md)
- [init(cgRect:)](coreimage/civector/init(cgrect:)-6bolw.md)
