Interpolant.html 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. 参数样本上插值的抽象基类 <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. <h3>[name]( parameterPositions, sampleValues, sampleSize, resultBuffer )</h3>
  21. <p>
  22. parameterPositions -- 位置(positions)数组<br />
  23. sampleValues -- 样本(samples)数组<br />
  24. sampleSize -- 样本数量<br />
  25. resultBuffer -- 缓冲区来存储插值结果。<br /><br />
  26. 注意: 这不是设计为直接调用的。
  27. </p>
  28. <h2>Properties</h2>
  29. <h3>[property:null parameterPositions]</h3>
  30. <p>
  31. </p>
  32. <h3>[property:null resultBuffer]</h3>
  33. <p>
  34. </p>
  35. <h3>[property:null sampleValues]</h3>
  36. <p>
  37. </p>
  38. <h3>[property:Object settings]</h3>
  39. <p>
  40. 可选的、特定于子类的设置结构。
  41. </p>
  42. <h3>[property:null valueSize]</h3>
  43. <p>
  44. </p>
  45. <h2>Methods</h2>
  46. <h3>[method:Array evaluate]( [param:Number t] )</h3>
  47. <p>
  48. 计算补间函数在位置 *t* 的值。
  49. </p>
  50. <h2>源码(Source)</h2>
  51. <p>
  52. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  53. </p>
  54. </body>
  55. </html>
粤ICP备19079148号