Interpolant.html 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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
  14. along a curve defined by the data.<br /><br />
  15. The sample values can have any dimensionality and derived classes may
  16. apply special interpretations to the data.<br /><br />
  17. This class provides the interval seek in a Template Method, deferring the
  18. actual interpolation to derived classes.<br /><br />
  19. Time complexity is `O(1)` for linear access crossing at most two points
  20. and `O(log N)` for random access, where *N* is the number of positions.<br /><br />
  21. References: [link:http://www.oodesign.com/template-method-pattern.html http://www.oodesign.com/template-method-pattern.html]
  22. </p>
  23. <h2>Constructor</h2>
  24. <h3>
  25. [name]( parameterPositions, sampleValues, sampleSize, resultBuffer )
  26. </h3>
  27. <p>
  28. parameterPositions -- array of positions<br />
  29. sampleValues -- array of samples<br />
  30. sampleSize -- number of samples<br />
  31. resultBuffer -- buffer to store the interpolation results.<br /><br />
  32. Note: This is not designed to be called directly.
  33. </p>
  34. <h2>Properties</h2>
  35. <h3>[property:null parameterPositions]</h3>
  36. <h3>[property:null resultBuffer]</h3>
  37. <h3>[property:null sampleValues]</h3>
  38. <h3>[property:Object settings]</h3>
  39. <p>Optional, subclass-specific settings structure.</p>
  40. <h3>[property:null valueSize]</h3>
  41. <h2>Methods</h2>
  42. <h3>[method:Array evaluate]( [param:Number t] )</h3>
  43. <p>Evaluate the interpolant at position *t*.</p>
  44. <h2>Source</h2>
  45. <p>
  46. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  47. </p>
  48. </body>
  49. </html>