<!--
{
  "availability" : [
    "iOS: 5.0.0 -",
    "iPadOS: 5.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.4.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreImage",
  "identifier" : "/documentation/CoreImage/CIVector/value(at:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core Image"
    ],
    "preciseIdentifier" : "c:objc(cs)CIVector(im)valueAtIndex:"
  },
  "title" : "value(at:)"
}
-->

# value(at:)

Returns a value from a specific position in the vector.

```
func value(at index: Int) -> CGFloat
```

## Parameters

`index`

The position in the vector of the value that you want to retrieve.

## Return Value


The value retrieved from the vector or `0` if the position is undefined.

## Discussion

The numbering of elements in a vector begins with zero.

---

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)