---
title: CIVector
framework: coreimage
role: symbol
role_heading: Class
path: coreimage/civector
---

# CIVector

The Core Image class that defines a vector object.

## Declaration

```swift
class CIVector
```

## Overview

Overview A CIVector can store one or more CGFloat in one object. They can store a group of float values for a variety of different uses such as coordinate points, direction vectors, geometric rectangles, transform matrices, convolution weights, or just a list a parameter values. You use CIVector objects in conjunction with other Core Image classes, such as CIFilter and CIKernel.  Many of the built-in Core Image filters have one or more CIVector inputs that you can set to affect the filter’s behavior.

## Topics

### Creating a Vector

- [init(cgAffineTransform:)](coreimage/civector/init(cgaffinetransform:)-59e4k.md)
- [init(cgPoint:)](coreimage/civector/init(cgpoint:)-3mobm.md)
- [init(cgRect:)](coreimage/civector/init(cgrect:)-3undj.md)

### Initializing a Vector

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

### Getting Values From a Vector

- [value(at:)](coreimage/civector/value(at:).md)
- [count](coreimage/civector/count.md)
- [x](coreimage/civector/x.md)
- [y](coreimage/civector/y.md)
- [z](coreimage/civector/z.md)
- [w](coreimage/civector/w.md)
- [stringRepresentation](coreimage/civector/stringrepresentation.md)
- [cgAffineTransformValue](coreimage/civector/cgaffinetransformvalue.md)
- [cgPointValue](coreimage/civector/cgpointvalue.md)
- [cgRectValue](coreimage/civector/cgrectvalue.md)

### Initializers

- [init(CGAffineTransform:)](coreimage/civector/init(cgaffinetransform:)-61k8d.md)
- [init(CGAffineTransform:)](coreimage/civector/init(cgaffinetransform:)-gf61.md)
- [init(CGPoint:)](coreimage/civector/init(cgpoint:)-2q3w0.md)
- [init(CGPoint:)](coreimage/civector/init(cgpoint:)-339fj.md)
- [init(CGRect:)](coreimage/civector/init(cgrect:)-60mr0.md)
- [init(CGRect:)](coreimage/civector/init(cgrect:)-9l6dq.md)
- [init(coder:)](coreimage/civector/init(coder:).md)
- [init(x:Y:)](coreimage/civector/init(x:y:)-2ia98.md)
- [init(x:Y:)](coreimage/civector/init(x:y:)-8ln4z.md)
- [init(x:Y:Z:)](coreimage/civector/init(x:y:z:)-6pett.md)
- [init(x:Y:Z:)](coreimage/civector/init(x:y:z:)-94o0c.md)
- [init(x:Y:Z:W:)](coreimage/civector/init(x:y:z:w:)-3lp39.md)
- [init(x:Y:Z:W:)](coreimage/civector/init(x:y:z:w:)-9obnr.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Filters

- [CIFilter](coreimage/cifilter-swift.class.md)
- [CIRAWFilter](coreimage/cirawfilter.md)
- [CIColor](coreimage/cicolor.md)
