# lerp

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

## Recommended Posts

Hy. What do the lerp(linear interpolation) operator and when it used in games? THanks

##### Share on other sites
It linearly interpolates between two values.

You use it when you want to linearly interpolate between two values. For instance, if you have a point A, and a target point B, and you want to move from A to B over T seconds, you lerp from A to B with a lerp value of curr_time/T.

##### Share on other sites
Hi,
there's a lot of information in linear interpolation on wikipedia (http://en.wikipedia.org/wiki/Linear_interpolation). There's a number of applications for linear interpolation in games, from calculating the colour of a pixel to texture coordinate information. Games are full of interpolation, graphics are not an exact art, infact, often computer graphics are calculated about as far from the real thing as you could imagine, simply because computers cannot support more realistic graphics models like photon and ray tracing in real time. Why linear interpolation? Because it's the fastest form of interpolation which is critical for real time graphics.

##### Share on other sites
Quote:
 Original post by Evil SteveIt linearly interpolates between two values.You use it when you want to linearly interpolate between two values.
+1

1. 1
Rutin
49
2. 2
3. 3
4. 4
5. 5

• 11
• 16
• 9
• 10
• 13
• ### Forum Statistics

• Total Topics
633003
• Total Posts
3009846
• ### Who's Online (See full list)

There are no registered users currently online

×