Interpolant →
四元数线性插值(QuaternionLinearInterpolant)
代码示例
const interpolant = new v3d.QuaternionLinearInterpolant(
new Float32Array(2),
new Float32Array(2),
1,
new Float32Array(1)
);
interpolant.evaluate(0.5);
构造函数(Constructor)
QuaternionLinearInterpolant(parameterPositions, sampleValues, sampleSize, resultBuffer)
parameterPositions -- 位置数组
sampleValues -- 样本数组
sampleSize -- 样本数量
resultBuffer -- 用于存储插值结果的缓冲区。
属性(Properties)
方法(Methods)
评估位置t 处的插值。
源码(Source)
src/math/interpolants/QuaternionLinearInterpolant.js
<div><img src="https://mc.yandex.ru/watch/46001298" style="position:absolute; left:-9999px;" alt="" /></div>
Verge3D 4.13.0-pre1 © Soft8Soft 2026