CubicInterpolant.html 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>CubicInterpolant - Three.js Docs</title>
  6. <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
  7. <script src="../scripts/highlight.min.js"></script>
  8. <link type="text/css" rel="stylesheet" href="../styles/highlight-three.css">
  9. <link type="text/css" rel="stylesheet" href="../styles/page.css">
  10. </head>
  11. <body>
  12. <p class="inheritance" translate="no"><a href="Interpolant.html">Interpolant</a> → </p>
  13. <h1 translate="no">CubicInterpolant</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>Fast and simple cubic spline interpolant.</p>
  17. <p>It was derived from a Hermitian construction setting the first derivative
  18. at each sample position to the linear slope between neighboring positions
  19. over their parameter interval.</p></div>
  20. </header>
  21. <article>
  22. <div class="container-overview">
  23. <h2>Constructor</h2>
  24. <h3 class="name name-method" id="CubicInterpolant" translate="no">new <a href="#CubicInterpolant">CubicInterpolant</a><span class="signature">( parameterPositions : <span class="param-type">TypedArray</span>, sampleValues : <span class="param-type">TypedArray</span>, sampleSize : <span class="param-type">number</span>, resultBuffer : <span class="param-type">TypedArray</span> )</span> </h3>
  25. <div class="method">
  26. <div class="description">
  27. <p>Constructs a new cubic interpolant.</p>
  28. </div>
  29. <table class="params">
  30. <tbody>
  31. <tr>
  32. <td class="name"><code>parameterPositions</code></td>
  33. <td class="description last"><p>The parameter positions hold the interpolation factors.</p></td>
  34. </tr>
  35. <tr>
  36. <td class="name"><code>sampleValues</code></td>
  37. <td class="description last"><p>The sample values.</p></td>
  38. </tr>
  39. <tr>
  40. <td class="name"><code>sampleSize</code></td>
  41. <td class="description last"><p>The sample size</p></td>
  42. </tr>
  43. <tr>
  44. <td class="name"><code>resultBuffer</code></td>
  45. <td class="description last"><p>The result buffer.</p></td>
  46. </tr>
  47. </tbody>
  48. </table>
  49. </div>
  50. </div>
  51. <h2 class="subsection-title">Source</h2>
  52. <p>
  53. <a href="https://github.com/mrdoob/three.js/blob/master/src/math/interpolants/CubicInterpolant.js" target="_blank" rel="noopener" translate="no">src/math/interpolants/CubicInterpolant.js</a>
  54. </p>
  55. </article>
  56. </section>
  57. <script src="../scripts/linenumber.js"></script>
  58. <script src="../scripts/page.js"></script>
  59. </body>
  60. </html>
粤ICP备19079148号