O'Reilly logo

WebGL Beginner's Guide by Brandon Jones, Diego Cantor

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action — interpolation

  1. Open ch5_Interpolation.html using your HTML5 Internet browser.
  2. Select Linear interpolation if it is not already selected.
  3. Move the start and end points using the slider provided.
  4. Change the number of interpolation steps. What happens to the animation when you decrease the number of steps?
  5. The code for the linear interpolation has been implemented in the doLinearInterpolation function.
    Time for action — interpolation
  6. Now select Polynomial interpolation. In this example we have implemented Lagrange's interpolation method. You can see the source code in the doLagrangeInterpolation function.
  7. After selecting the polynomial interpolation, you will see that ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required