CPSC310A
Video Game Development

Activity 15

Linear Interpolation

Details

Write the the following method:

  1. 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.