# LERP

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

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

1. 1
Rutin
41
2. 2
3. 3
4. 4
5. 5

• 9
• 24
• 20
• 14
• 14
• ### Forum Statistics

• Total Topics
633384
• Total Posts
3011592
• ### Who's Online (See full list)

There are no registered users currently online

×