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

# GLKVector2Lerp(_:_:_:)

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

## Declaration

```swift
func GLKVector2Lerp(_ vectorStart: GLKVector2, _ vectorEnd: GLKVector2, _ t: Float) -> GLKVector2
```

## 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

- [GLKVector2Negate(_:)](glkit/glkvector2negate(_:).md)
- [GLKVector2Normalize(_:)](glkit/glkvector2normalize(_:).md)
- [GLKVector2AddScalar(_:_:)](glkit/glkvector2addscalar(_:_:).md)
- [GLKVector2SubtractScalar(_:_:)](glkit/glkvector2subtractscalar(_:_:).md)
- [GLKVector2MultiplyScalar(_:_:)](glkit/glkvector2multiplyscalar(_:_:).md)
- [GLKVector2DivideScalar(_:_:)](glkit/glkvector2dividescalar(_:_:).md)
- [GLKVector2Add(_:_:)](glkit/glkvector2add(_:_:).md)
- [GLKVector2Subtract(_:_:)](glkit/glkvector2subtract(_:_:).md)
- [GLKVector2Multiply(_:_:)](glkit/glkvector2multiply(_:_:).md)
- [GLKVector2Divide(_:_:)](glkit/glkvector2divide(_:_:).md)
- [GLKVector2DotProduct(_:_:)](glkit/glkvector2dotproduct(_:_:).md)
- [GLKVector2Project(_:_:)](glkit/glkvector2project(_:_:).md)
- [GLKVector2Maximum(_:_:)](glkit/glkvector2maximum(_:_:).md)
- [GLKVector2Minimum(_:_:)](glkit/glkvector2minimum(_:_:).md)
