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

# GLKQuaternionMakeWithVector3(_:_:)

Returns a quaternion created from a vector and a scalar.

## Declaration

```swift
func GLKQuaternionMakeWithVector3(_ vector: GLKVector3, _ scalar: Float) -> GLKQuaternion
```

## Parameters

- `vector`: The vector portion of the new quaternion.
- `scalar`: The scalar portion of the new quaternion.

## Return Value

Return Value A new quaternion.

## See Also

### Creating Quaternions

- [GLKQuaternionMake(_:_:_:_:)](glkit/glkquaternionmake(_:_:_:_:).md)
- [GLKQuaternionMakeWithArray(_:)](glkit/glkquaternionmakewitharray(_:).md)
- [GLKQuaternionMakeWithAngleAndAxis(_:_:_:_:)](glkit/glkquaternionmakewithangleandaxis(_:_:_:_:).md)
- [GLKQuaternionMakeWithAngleAndVector3Axis(_:_:)](glkit/glkquaternionmakewithangleandvector3axis(_:_:).md)
- [GLKQuaternionMakeWithMatrix3(_:)](glkit/glkquaternionmakewithmatrix3(_:).md)
- [GLKQuaternionMakeWithMatrix4(_:)](glkit/glkquaternionmakewithmatrix4(_:).md)
