lerp(_:_:)

Linearly interpolate between this vector and another you provide.

Vector.swift:96
func lerp(_ a: Vector, _ t: Float) -> Vector

Parameters

a

The vector to interpolate towards.

t

A value, typically between 0 and 1, to indicate the position to interpolate between the two vectors.

Returns

A vector interpolated to the position you provide.