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

# init(values:count:)

Initialize a Core Image vector object with the specified the values.

## Declaration

```swift
init(values: UnsafePointer<CGFloat>, count: Int)
```

## Parameters

- `values`: A pointer CGFloat values for vector.
- `count`: The number of CGFloats specified by the values parameter.

## Return Value

Return Value  An initialized CIVector object of length count.

## See Also

### Initializing a Vector

- [init(x:)](coreimage/civector/init(x:).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)
