BezierInterpolant
THREE.BezierInterpolant
class BezierInterpolant(parameterPositions: TypedArray[_, _], sampleValues: TypedArray[_, _], sampleSize: Int, resultBuffer: UndefOr[TypedArray[_, _]] = ...) extends Interpolant
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 componentsettings.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, ...]
If no tangent data is provided, falls back to linear interpolation.
Attributes
- Graph
-
- Supertypes
Members list
In this article