1
0

Interpolant.html 1.9 KB

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