---
title: "GLKVector2Distance(_:_:)"
framework: GLKit
role: symbol
role_heading: Function
platforms: [iOS 5.0+, iPadOS 5.0+, macOS 10.8+, tvOS 9.0+]
path: "glkit/glkvector2distance(_:_:)"
---

# GLKVector2Distance(_:_:)

Returns the distance between two points.

## Declaration

```swift
func GLKVector2Distance(_ vectorStart: GLKVector2, _ vectorEnd: GLKVector2) -> Float
```

## Parameters

- `vectorStart`: A vector providing the coordinates of the starting point.
- `vectorEnd`: A vector providing the coordinates of the ending point.

## Return Value

Return Value The distance between the two points.

## See Also

### Retrieving Information About a Vector

- [GLKVector2Length(_:)](glkit/glkvector2length(_:).md)
