Interpolant.html 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <base href="../../../" />
  6. <script src="list.js"></script>
  7. <script src="page.js"></script>
  8. <link type="text/css" rel="stylesheet" href="page.css" />
  9. </head>
  10. <body>
  11. <h1>插值器([name])</h1>
  12. <p class="desc">
  13. A参数样本上插值的抽象基类 <br /><br />
  14. 参数域是一维的,通常是数据定义的曲线上的时间或路径。<br /><br />
  15. 示例值可以具有任何维度,派生类可以对数据应用特殊的解释。<br /><br />
  16. 该类提供间隔查找的模板方法,将实际的插值延迟到派生类。<br /><br />
  17. 对于最多两个点之间的访问时间复杂度为O(1),对于随机访问时间复杂度为O(log N),其中N为位置数。<br /><br />
  18. 相关: [link:http://www.oodesign.com/template-method-pattern.html http://www.oodesign.com/template-method-pattern.html]
  19. </p>
  20. <h2>Constructor</h2>
  21. <h2>Constructor</h2>
  22. <h3>[name]( parameterPositions, sampleValues, sampleSize, resultBuffer )</h3>
  23. <p>
  24. parameterPositions -- array of positions<br />
  25. sampleValues -- array of samples<br />
  26. sampleSize -- number of samples<br />
  27. resultBuffer -- buffer to store the interpolation results.<br /><br />
  28. 注意: 这不是设计为直接调用的。
  29. </p>
  30. <h2>Properties</h2>
  31. <h3>[property:null parameterPositions]</h3>
  32. <p>
  33. </p>
  34. <h3>[property:null resultBuffer]</h3>
  35. <p>
  36. </p>
  37. <h3>[property:null sampleValues]</h3>
  38. <p>
  39. </p>
  40. <h3>[property:Object settings]</h3>
  41. <p>
  42. Optional, subclass-specific settings structure.
  43. </p>
  44. <h3>[property:null valueSize]</h3>
  45. <p>
  46. </p>
  47. <h2>Methods</h2>
  48. <h3>[method:null evaluate]( [param:Number t] )</h3>
  49. <p>
  50. 计算补间函数在位置 *t* 的值。
  51. </p>
  52. <h2>源码(Source)</h2>
  53. <p>
  54. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  55. </p>
  56. </body>
  57. </html>