---
title: "float3(at:)"
framework: gameplaykit
role: symbol
role_heading: Instance Method
path: "gameplaykit/gkpath/float3(at:)"
---

# float3(at:)

Returns the 3D point at the specified index in the path’s list of vertices.

## Declaration

```swift
func float3(at index: Int) -> vector_float3
```

## Parameters

- `index`: The index of the vertex to return, between 0 and the doc://com.apple.gameplaykit/documentation/GameplayKit/GKPath/numPoints value.

## Return Value

Return Value The vertex at the specified index.

## Discussion

Discussion You define a path’s vertices when creating it, either directly with the initWithFloat3Points:count:radius:cyclical: initializer or indirectly with the init(graphNodes:radius:) initializer. If the path is a 2D path, this method is still functional, but returns 3D vectors whose z-component is always zero.

## See Also

### Inspecting a Path’s Shape

- [numPoints](gameplaykit/gkpath/numpoints.md)
- [float2(at:)](gameplaykit/gkpath/float2(at:).md)
- [point(at:)](gameplaykit/gkpath/point(at:).md)
