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

# GLKVector4Length(_:)

Returns the length of a vector.

## Declaration

```swift
func GLKVector4Length(_ vector: GLKVector4) -> Float
```

## Parameters

- `vector`: A vector.

## Return Value

Return Value The length of the vector.

## See Also

### Retrieving Information About a Vector

- [GLKVector4Distance(_:_:)](glkit/glkvector4distance(_:_:).md)
