DiscreteInterpolant.html 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <base href="../../../../" />
  6. <script src="page.js"></script>
  7. <link type="text/css" rel="stylesheet" href="page.css" />
  8. </head>
  9. <body>
  10. [page:Interpolant] &rarr;
  11. <h1>[name]</h1>
  12. <p class="desc"></p>
  13. <h2>Code Example</h2>
  14. <code>
  15. const interpolant = new THREE.[name](
  16. new Float32Array( 2 ),
  17. new Float32Array( 2 ),
  18. 1,
  19. new Float32Array( 1 )
  20. );
  21. interpolant.evaluate( 0.5 );
  22. </code>
  23. <h2>Constructor</h2>
  24. <h3>
  25. [name]( parameterPositions, sampleValues, sampleSize, resultBuffer )
  26. </h3>
  27. <p>
  28. parameterPositions -- array of positions<br />
  29. sampleValues -- array of samples<br />
  30. sampleSize -- number of samples<br />
  31. resultBuffer -- buffer to store the interpolation results.<br /><br />
  32. </p>
  33. <h2>Properties</h2>
  34. <h3>[property:null parameterPositions]</h3>
  35. <h3>[property:null resultBuffer]</h3>
  36. <h3>[property:null sampleValues]</h3>
  37. <h3>[property:Object settings]</h3>
  38. <h3>[property:null valueSize]</h3>
  39. <h2>Methods</h2>
  40. <h3>[method:Array evaluate]( [param:Number t] )</h3>
  41. <p>Evaluate the interpolant at position *t*.</p>
  42. <h2>Source</h2>
  43. <p>
  44. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  45. </p>
  46. </body>
  47. </html>