BezierInterpolant.html 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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>Tangent data is read from <code>inTangents</code> and <code>outTangents</code> on the interpolant
  21. (populated by <code>KeyframeTrack.InterpolantFactoryMethodBezier</code>).</p>
  22. <p>For a track with N keyframes and stride S:</p>
  23. <ul>
  24. <li>Each tangent array has N * S * 2 values</li>
  25. <li>Layout: [k0_c0_time, k0_c0_value, k0_c1_time, k0_c1_value, ..., k0_cS_time, k0_cS_value,
  26. k1_c0_time, k1_c0_value, ...]</li>
  27. </ul></div>
  28. </header>
  29. <article>
  30. <div class="container-overview">
  31. <h2>Constructor</h2>
  32. <h3 class="name name-method" id="BezierInterpolant" translate="no">new <a href="#BezierInterpolant">BezierInterpolant</a><span class="signature">()</span> </h3>
  33. <div class="method">
  34. </div>
  35. </div>
  36. <h2 class="subsection-title">Source</h2>
  37. <p>
  38. <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>
  39. </p>
  40. </article>
  41. </section>
  42. <script src="../scripts/linenumber.js"></script>
  43. <script src="../scripts/page.js"></script>
  44. </body>
  45. </html>
粤ICP备19079148号