---
title: "value(at:)"
framework: coreimage
role: symbol
role_heading: Instance Method
path: "coreimage/civector/value(at:)"
---

# value(at:)

Returns a value from a specific position in the vector.

## Declaration

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

## Parameters

- `index`: The position in the vector of the value that you want to retrieve.

## Return Value

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

## Discussion

Discussion The numbering of elements in a vector begins with zero.

## See Also

### Getting Values From a Vector

- [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)
