<!--
{
  "availability" : [
    "iOS: 5.0.0 -",
    "iPadOS: 5.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.9.0 -",
    "tvOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreImage",
  "identifier" : "/documentation/CoreImage/CIVector/init(cgAffineTransform:)-6o8gl",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Core Image"
    ],
    "preciseIdentifier" : "c:objc(cs)CIVector(im)initWithCGAffineTransform:"
  },
  "title" : "init(cgAffineTransform:)"
}
-->

# init(cgAffineTransform:)

Initialize a Core Image vector object with six values provided by a `CGAffineTransform` structure.

```
convenience init(cgAffineTransform t: CGAffineTransform)
```

## Parameters

`t`

The `CGAffineTransform` structure.

## Return Value


An initialized [`CIVector`](/documentation/CoreImage/CIVector) object of length 6.

## Discussion

The `CGAffineTransform` structure’s `a`, `b`, `c`, `c`, `tx` and `ty` values
are stored in the vector’s six values.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)