If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Main content
Current time:0:00Total duration:1:21

1. Mathematics of linear interpolation

Video transcript

so we've seen two ways to calculate in betweens linear interpolation and Bezier curves now let's get into the math behind them we're going to build on some of what we learned in the environment modeling lesson so if you need to review click on this link let's start with the simpler version linear interpolation let's focus on this segment we know the value of y at frame four is 750 and the value at frame a is 190 but what's the value of y at frame five six or seven the picture tells us that Y can be represented as a linear function of X where X is the frame number linear functions can be written in slope-intercept form y equals MX plus b where m is the slope and B is the y-intercept now we don't know the slope and intercept directly but we do have two points on the line which is enough information to calculate them now once we have M and B we can figure out why for any frame try out this next exercise to test your understanding of linear interpolation using the slope intercept form