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

# GLKVector4Distance(_:_:)

Returns the distance between two points.

## Declaration

```swift
func GLKVector4Distance(_ vectorStart: GLKVector4, _ vectorEnd: GLKVector4) -> 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

- [GLKVector4Length(_:)](glkit/glkvector4length(_:).md)
