Interpolant.html 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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. <h2>Constructor</h2>
  22. <h3>[name]( parameterPositions, sampleValues, sampleSize, resultBuffer )</h3>
  23. <p>
  24. parameterPositions -- array of positions<br />
  25. sampleValues -- array of samples<br />
  26. sampleSize -- number of samples<br />
  27. resultBuffer -- buffer to store the interpolation results.<br /><br />
  28. Note: This is not designed to be called directly.
  29. </p>
  30. <h2>Properties</h2>
  31. <h3>[property:null parameterPositions]</h3>
  32. <p>
  33. </p>
  34. <h3>[property:null resultBuffer]</h3>
  35. <p>
  36. </p>
  37. <h3>[property:null sampleValues]</h3>
  38. <p>
  39. </p>
  40. <h3>[property:Object settings]</h3>
  41. <p>
  42. Optional, subclass-specific settings structure.
  43. </p>
  44. <h3>[property:null valueSize]</h3>
  45. <p>
  46. </p>
  47. <h2>Methods</h2>
  48. <h3>[method:null evaluate]( [param:Number t] )</h3>
  49. <p>
  50. Evaluate the interpolant at position *t*.
  51. </p>
  52. <h2>Source</h2>
  53. <p>
  54. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  55. </p>
  56. </body>
  57. </html>