lerp(from:to:t:)
Returns a Spatial vector that represents the linear interpolation at t between two vectors.
Declaration
static func lerp(from: Vector3D, to: Vector3D, t: Vector3D) -> Vector3DParameters
- from:
The starting vector.
- to:
The ending vector.
- t:
The value, between
0and1, that the function interpolates at.
Return Value
A new rotation. When t=0, the result is the from vector. When t=1.0, the result is the to vector. For any other value of t, the result is a linear linear interpolation between the two vectors.