Details
Write the the following method:
Vector Vector::lerp(Vector v1, Vector v2, double t)
Returns the linear interpolation of v1 and v2 by the fraction t.
Submission
Please show your source code and run your program for the instructor.
Linear Interpolation
Write the the following method:
Vector Vector::lerp(Vector v1, Vector v2, double t)
Returns the linear interpolation of v1 and v2 by the fraction t.
Please show your source code and run your program for the instructor.