| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <title>BezierInterpolant - Three.js Docs</title>
- <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
- <script src="../scripts/highlight.min.js"></script>
- <link type="text/css" rel="stylesheet" href="../styles/highlight-three.css">
- <link type="text/css" rel="stylesheet" href="../styles/page.css">
- </head>
- <body>
- <p class="inheritance" translate="no"><a href="Interpolant.html">Interpolant</a> → </p>
- <h1 translate="no">BezierInterpolant</h1>
- <section>
- <header>
- <div class="class-description"><p>A Bezier interpolant using cubic Bezier curves with 2D control points.</p>
- <p>This interpolant supports the COLLADA/Maya style of Bezier animation where
- each keyframe has explicit in/out tangent control points specified as
- 2D coordinates (time, value).</p>
- <p>The tangent data must be provided via the <code>settings</code> object:</p>
- <ul>
- <li><code>settings.inTangents</code>: Float32Array with [time, value] pairs per keyframe per component</li>
- <li><code>settings.outTangents</code>: Float32Array with [time, value] pairs per keyframe per component</li>
- </ul>
- <p>For a track with N keyframes and stride S:</p>
- <ul>
- <li>Each tangent array has N * S * 2 values</li>
- <li>Layout: [k0_c0_time, k0_c0_value, k0_c1_time, k0_c1_value, ..., k0_cS_time, k0_cS_value,
- k1_c0_time, k1_c0_value, ...]</li>
- </ul></div>
- </header>
- <article>
- <div class="container-overview">
- <h2>Constructor</h2>
- <h3 class="name name-method" id="BezierInterpolant" translate="no">new <a href="#BezierInterpolant">BezierInterpolant</a><span class="signature">()</span> </h3>
- <div class="method">
- </div>
- </div>
- <h2 class="subsection-title">Source</h2>
- <p>
- <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>
- </p>
- </article>
- </section>
- <script src="../scripts/linenumber.js"></script>
- <script src="../scripts/page.js"></script>
- </body>
- </html>
|