Linear Interpolation (Lerp) - Math and JavaScript Applications

Publié le: 16 septembre 2022
sur la chaîne: Radu Mariescu-Istodor
20,470
825

Linear interpolation (Lerp) is a very important technique I use all the time. In this video I won’t just give you the formula, but teach you how to figure it out by yourself when needed. I think you’ll remember the math better in that way. Then, once the formula is clear, I’ll show you how to use it in JavaScript. I'll teach you several different applications where we animate location, color, sound and text!

I made this video because many of my students make the mistake of not extracting lerp as its own function when they use it multiple times in an application. Then, the code has countless different implementations all over the place. This kind of spaghetti code leads to a lot of bugs.

Self-driving car videos where I use Lerp
Defining the road:    • Self-driving car - No libraries - JavaScri...  
Creating the sensor:    • Self-driving car - No libraries - JavaScri...  
Mutating the network:    • Self-driving car - No libraries - JavaScri...  

Segment Intersection
   • Segment intersection formula explained  

Understanding Color
   • Color and Style - HTML Canvas  

Melody Maker Tutorial
   • Melody Maker app using vanilla JavaScript,...  

Visual Web Development Course
   • Visual Web Dev. Course (2021)  

Beauty of Bezier Curves
   • The Beauty of Bézier Curves  

Easing functions cheat sheet
https://easings.net

Desmos calculator
https://www.desmos.com/calculator

#lerp #interpolation #javascript


Sur cette page du site, vous pouvez voir la vidéo en ligne Linear Interpolation (Lerp) - Math and JavaScript Applications durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Radu Mariescu-Istodor 16 septembre 2022, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 20,470 fois et il a aimé 825 téléspectateurs. Bon visionnage!