BezierInterpolant.html 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>BezierInterpolant - Three.js Docs</title>
  6. <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
  7. <script src="../scripts/highlight.min.js"></script>
  8. <link type="text/css" rel="stylesheet" href="../styles/highlight-three.css">
  9. <link type="text/css" rel="stylesheet" href="../styles/page.css">
  10. </head>
  11. <body>
  12. <p class="inheritance" translate="no"><a href="Interpolant.html">Interpolant</a> → </p>
  13. <h1 translate="no">BezierInterpolant</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>A Bezier interpolant using cubic Bezier curves with 2D control points.</p>
  17. <p>This interpolant supports the COLLADA/Maya style of Bezier animation where
  18. each keyframe has explicit in/out tangent control points specified as
  19. 2D coordinates (time, value).</p>
  20. <p>The tangent data must be provided via the <code>settings</code> object:</p>
  21. <ul>
  22. <li><code>settings.inTangents</code>: Float32Array with [time, value] pairs per keyframe per component</li>
  23. <li><code>settings.outTangents</code>: Float32Array with [time, value] pairs per keyframe per component</li>
  24. </ul>
  25. <p>For a track with N keyframes and stride S:</p>
  26. <ul>
  27. <li>Each tangent array has N * S * 2 values</li>
  28. <li>Layout: [k0_c0_time, k0_c0_value, k0_c1_time, k0_c1_value, ..., k0_cS_time, k0_cS_value,
  29. k1_c0_time, k1_c0_value, ...]</li>
  30. </ul></div>
  31. </header>
  32. <article>
  33. <div class="container-overview">
  34. <h2>Constructor</h2>
  35. <h3 class="name name-method" id="BezierInterpolant" translate="no">new <a href="#BezierInterpolant">BezierInterpolant</a><span class="signature">()</span> </h3>
  36. <div class="method">
  37. </div>
  38. </div>
  39. <h2 class="subsection-title">Source</h2>
  40. <p>
  41. <a href="https://github.com/mrdoob/three.js/blob/master/src/math/interpolants/BezierInterpolant.js" translate="no" target="_blank" rel="noopener">src/math/interpolants/BezierInterpolant.js</a>
  42. </p>
  43. </article>
  44. </section>
  45. <script src="../scripts/linenumber.js"></script>
  46. <script src="../scripts/page.js"></script>
  47. </body>
  48. </html>
粤ICP备19079148号