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

# GLKVector2Length(_:)

Returns the length of a vector.

## Declaration

```swift
func GLKVector2Length(_ vector: GLKVector2) -> Float
```

## Parameters

- `vector`: A vector.

## Return Value

Return Value The length of the vector.

## See Also

### Retrieving Information About a Vector

- [GLKVector2Distance(_:_:)](glkit/glkvector2distance(_:_:).md)
