DiscreteInterpolant.html 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>DiscreteInterpolant - 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">DiscreteInterpolant</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>Interpolant that evaluates to the sample value at the position preceding
  17. the parameter.</p></div>
  18. </header>
  19. <article>
  20. <div class="container-overview">
  21. <h2>Constructor</h2>
  22. <h3 class="name name-method" id="DiscreteInterpolant" translate="no">new <a href="#DiscreteInterpolant">DiscreteInterpolant</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>
  23. <div class="method">
  24. <div class="description">
  25. <p>Constructs a new discrete interpolant.</p>
  26. </div>
  27. <table class="params">
  28. <tbody>
  29. <tr>
  30. <td class="name">
  31. <strong>parameterPositions</strong>
  32. </td>
  33. <td class="description last">
  34. <p>The parameter positions hold the interpolation factors.</p>
  35. </td>
  36. </tr>
  37. <tr>
  38. <td class="name">
  39. <strong>sampleValues</strong>
  40. </td>
  41. <td class="description last">
  42. <p>The sample values.</p>
  43. </td>
  44. </tr>
  45. <tr>
  46. <td class="name">
  47. <strong>sampleSize</strong>
  48. </td>
  49. <td class="description last">
  50. <p>The sample size</p>
  51. </td>
  52. </tr>
  53. <tr>
  54. <td class="name">
  55. <strong>resultBuffer</strong>
  56. </td>
  57. <td class="description last">
  58. <p>The result buffer.</p>
  59. </td>
  60. </tr>
  61. </tbody>
  62. </table>
  63. </div>
  64. </div>
  65. <h2 class="subsection-title">Source</h2>
  66. <p>
  67. <a href="https://github.com/mrdoob/three.js/blob/master/src/math/interpolants/DiscreteInterpolant.js" translate="no" target="_blank" rel="noopener">src/math/interpolants/DiscreteInterpolant.js</a>
  68. </p>
  69. </article>
  70. </section>
  71. <script src="../scripts/linenumber.js"></script>
  72. <script src="../scripts/page.js"></script>
  73. </body>
  74. </html>
粤ICP备19079148号