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

# GLKVector2MakeWithArray(_:)

Returns a new two-component vector created from an array of components.

## Declaration

```swift
func GLKVector2MakeWithArray(_ values: UnsafeMutablePointer<Float>!) -> GLKVector2
```

## Parameters

- `values`: The array containing the component values.

## Return Value

Return Value The array

## Discussion

Discussion An initialized vector.

## See Also

### Creating Vectors

- [GLKVector2Make(_:_:)](glkit/glkvector2make(_:_:).md)
