Sign in to follow this  

LERP

This topic is 4686 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Ok from what I have looked on LERP its Linear Interpolation? And what I have seen it almost looks like the formula to finding the slope of a line??? I am asking what is the formula for LERP? I see this called in some tutorials and not sure what the formula is. y2-y1 ----- x2-x1 Is that it? Thanks for any help..

Share this post


Link to post
Share on other sites
that's the slop of a line equation. For linear interpolation you want to get the intepolated value between two other values for a given time. Say it takes 1 second to go from a to b. Then if you knew a and b and wanted to know where you'd be at in 0.37 of a second, you can use linear interpolation like htis:

newValue = a + (b-a) * s

Where s is the time between 0 and 1.

Share this post


Link to post
Share on other sites

This topic is 4686 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this