Interpolant

BezierInterpolant

A Bezier interpolant using cubic Bezier curves with 2D control points.

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).

The tangent data must be provided via the settings object:

  • settings.inTangents: Float32Array with [time, value] pairs per keyframe per component
  • settings.outTangents: Float32Array with [time, value] pairs per keyframe per component

For a track with N keyframes and stride S:

  • Each tangent array has N * S * 2 values
  • 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, ...]

Constructor

new BezierInterpolant()

Source

src/math/interpolants/BezierInterpolant.js