Function tf2::lerp(const Vector3&, const Vector3&, const tf2Scalar&)

Function Documentation

Vector3 tf2::lerp(const Vector3 &v1, const Vector3 &v2, const tf2Scalar &t)

Return the linear interpolation between two vectors.

Parameters:
  • v1 – One vector

  • v2 – The other vector

  • t – The ration of this to v (t = 0 => return v1, t=1 => return v2)