Interpolant.html 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <!DOCTYPE html>
  2. <html lang="en">
  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. Abstract base class of interpolants over parametric samples.<br /><br />
  13. The parameter domain is one dimensional, typically the time or a path along a curve defined by the data.<br /><br />
  14. The sample values can have any dimensionality and derived classes may apply special interpretations to the data.<br /><br />
  15. This class provides the interval seek in a Template Method, deferring the actual interpolation to derived classes.<br /><br />
  16. Time complexity is `O(1)` for linear access crossing at most two points and `O(log N)` for random access,
  17. where *N* is the number of positions.<br /><br />
  18. References: [link:http://www.oodesign.com/template-method-pattern.html http://www.oodesign.com/template-method-pattern.html]
  19. </p>
  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. Note: This is not designed to be called directly.
  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. Evaluate the interpolant at position *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>