1
0

QuaternionLinearInterpolant.html 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. [page:Interpolant] &rarr;
  11. <h1>四元数线性插值([name])</h1>
  12. <p class="desc">
  13. </p>
  14. <h2>代码示例</h2>
  15. <code>
  16. const interpolant = new THREE.[name](
  17. new Float32Array( 2 ),
  18. new Float32Array( 2 ),
  19. 1,
  20. new Float32Array( 1 )
  21. );
  22. interpolant.evaluate( 0.5 );
  23. </code>
  24. <h2>构造函数(Constructor)</h2>
  25. <h3>[name]( parameterPositions, sampleValues, sampleSize, resultBuffer )</h3>
  26. <p>
  27. parameterPositions -- 位置数组<br />
  28. sampleValues -- 样本数组<br />
  29. sampleSize -- 样本数量<br />
  30. resultBuffer -- 用于存储插值结果的缓冲区。<br /><br />
  31. </p>
  32. <h2>属性(Properties)</h2>
  33. <h3>[property:null parameterPositions]</h3>
  34. <p>
  35. </p>
  36. <h3>[property:null resultBuffer]</h3>
  37. <p>
  38. </p>
  39. <h3>[property:null sampleValues]</h3>
  40. <p>
  41. </p>
  42. <h3>[property:Object settings]</h3>
  43. <p>
  44. </p>
  45. <h3>[property:null valueSize]</h3>
  46. <p>
  47. </p>
  48. <h2>方法(Methods)</h2>
  49. <h3>[method:Array evaluate]( [param:Number t] )</h3>
  50. <p>
  51. 评估位置*t*处的插值。
  52. </p>
  53. <h2>源码(Source)</h2>
  54. <p>
  55. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  56. </p>
  57. </body>
  58. </html>