---
title: numPoints
framework: gameplaykit
role: symbol
role_heading: Instance Property
path: gameplaykit/gkpath/numpoints
---

# numPoints

The number of vertices in the path.

## Declaration

```swift
var numPoints: Int { get }
```

## Discussion

Discussion You define a path’s vertices when creating it, either directly with the initWithPoints:count:radius:cyclical: initializer or indirectly with the init(graphNodes:radius:) initializer.

## See Also

### Inspecting a Path’s Shape

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