CubicInterpolant.html 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <!DOCTYPE html>
  2. <html lang="it">
  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>Codice di Esempio</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>Costruttore</h2>
  25. <h3>[name]( parameterPositions, sampleValues, sampleSize, resultBuffer )</h3>
  26. <p>
  27. parameterPositions -- array di posizioni<br />
  28. sampleValues -- array di campioni<br />
  29. sampleSize -- numero di campioni<br />
  30. resultBuffer -- buffer per memorizzare i risultati dell'interpolazione.<br /><br />
  31. </p>
  32. <h2>Proprietà</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>Metodi</h2>
  49. <h3>[method:Array evaluate]( [param:Number t] )</h3>
  50. <p>
  51. Valuta l'interpolante alla posizione *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>