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

# GLKVector3Lerp(_:_:_:)

Returns a new vector created by linearly interpreting between two vectors.

## Declaration

```swift
func GLKVector3Lerp(_ vectorStart: GLKVector3, _ vectorEnd: GLKVector3, _ t: Float) -> GLKVector3
```

## Parameters

- `vectorStart`: The starting vector.
- `vectorEnd`: The ending vector.
- `t`: An interpolation constant.

## Return Value

Return Value A new vector.

## Discussion

Discussion The value of t should typically be between 0.0 and 1.0. A value of 0.0 returns the starting vector and a value of 1.0 returns the ending vector. Any other value of t results in a linear interpolation between the two points.

## See Also

### Mathematical Operations Performed on Vectors

- [GLKVector3Negate(_:)](glkit/glkvector3negate(_:).md)
- [GLKVector3Normalize(_:)](glkit/glkvector3normalize(_:).md)
- [GLKVector3AddScalar(_:_:)](glkit/glkvector3addscalar(_:_:).md)
- [GLKVector3SubtractScalar(_:_:)](glkit/glkvector3subtractscalar(_:_:).md)
- [GLKVector3MultiplyScalar(_:_:)](glkit/glkvector3multiplyscalar(_:_:).md)
- [GLKVector3DivideScalar(_:_:)](glkit/glkvector3dividescalar(_:_:).md)
- [GLKVector3Add(_:_:)](glkit/glkvector3add(_:_:).md)
- [GLKVector3Subtract(_:_:)](glkit/glkvector3subtract(_:_:).md)
- [GLKVector3Multiply(_:_:)](glkit/glkvector3multiply(_:_:).md)
- [GLKVector3Divide(_:_:)](glkit/glkvector3divide(_:_:).md)
- [GLKVector3DotProduct(_:_:)](glkit/glkvector3dotproduct(_:_:).md)
- [GLKVector3CrossProduct(_:_:)](glkit/glkvector3crossproduct(_:_:).md)
- [GLKVector3Project(_:_:)](glkit/glkvector3project(_:_:).md)
- [GLKVector3Maximum(_:_:)](glkit/glkvector3maximum(_:_:).md)
- [GLKVector3Minimum(_:_:)](glkit/glkvector3minimum(_:_:).md)
