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

# GLKVector4MakeWithVector3(_:_:)

Returns a new four-component vector created by combining a three-component vector with a scalar value.

## Declaration

```swift
func GLKVector4MakeWithVector3(_ vector: GLKVector3, _ w: Float) -> GLKVector4
```

## Parameters

- `vector`: A vector.
- `w`: The fourth component.

## Return Value

Return Value A new vector.

## See Also

### Creating Vectors

- [GLKVector4Make(_:_:_:_:)](glkit/glkvector4make(_:_:_:_:).md)
- [GLKVector4MakeWithArray(_:)](glkit/glkvector4makewitharray(_:).md)
