1
0

CubicInterpolant.html 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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">
  33. <strong>parameterPositions</strong>
  34. </td>
  35. <td class="description last">
  36. <p>The parameter positions hold the interpolation factors.</p>
  37. </td>
  38. </tr>
  39. <tr>
  40. <td class="name">
  41. <strong>sampleValues</strong>
  42. </td>
  43. <td class="description last">
  44. <p>The sample values.</p>
  45. </td>
  46. </tr>
  47. <tr>
  48. <td class="name">
  49. <strong>sampleSize</strong>
  50. </td>
  51. <td class="description last">
  52. <p>The sample size</p>
  53. </td>
  54. </tr>
  55. <tr>
  56. <td class="name">
  57. <strong>resultBuffer</strong>
  58. </td>
  59. <td class="description last">
  60. <p>The result buffer.</p>
  61. </td>
  62. </tr>
  63. </tbody>
  64. </table>
  65. </div>
  66. </div>
  67. <h2 class="subsection-title">Source</h2>
  68. <p>
  69. <a href="https://github.com/mrdoob/three.js/blob/master/src/math/interpolants/CubicInterpolant.js" translate="no" target="_blank" rel="noopener">src/math/interpolants/CubicInterpolant.js</a>
  70. </p>
  71. </article>
  72. </section>
  73. <script src="../scripts/linenumber.js"></script>
  74. <script src="../scripts/page.js"></script>
  75. </body>
  76. </html>
粤ICP备19079148号