<!--
{
  "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(cgPoint:)-8cf9j",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Core Image"
    ],
    "preciseIdentifier" : "c:objc(cs)CIVector(im)initWithCGPoint:"
  },
  "title" : "init(cgPoint:)"
}
-->

# init(cgPoint:)

Initialize a Core Image vector object with two values provided by a `CGPoint` structure.

```
convenience init(cgPoint p: CGPoint)
```

## Parameters

`p`

The `CGPoint` structure.

## Return Value


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

## Discussion

The `CGRect` structure’s `y` and `y` values
are stored in the vector’s two 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)