GLKVector3Lerp(_:_:_:)
Returns a new vector created by linearly interpreting between two vectors.
Declaration
func GLKVector3Lerp(_ vectorStart: GLKVector3, _ vectorEnd: GLKVector3, _ t: Float) -> GLKVector3Parameters
- vectorStart:
The starting vector.
- vectorEnd:
The ending vector.
- t:
An interpolation constant.
Return Value
A new vector.
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(_:)GLKVector3Normalize(_:)GLKVector3AddScalar(_:_:)GLKVector3SubtractScalar(_:_:)GLKVector3MultiplyScalar(_:_:)GLKVector3DivideScalar(_:_:)GLKVector3Add(_:_:)GLKVector3Subtract(_:_:)GLKVector3Multiply(_:_:)GLKVector3Divide(_:_:)GLKVector3DotProduct(_:_:)GLKVector3CrossProduct(_:_:)GLKVector3Project(_:_:)GLKVector3Maximum(_:_:)GLKVector3Minimum(_:_:)