LinearApproximation

Members

static Cesium.LinearApproximation.type : string

Gets the name of this interpolation algorithm.

Methods

static Cesium.LinearApproximation.getRequiredDataPoints(degree)number

给定所需的次数,返回插值所需的数据点数量。 由于线性插值只能生成一阶多项式,该函数 总是返回 2。
Name Type Description
degree number 所需的插值次数。
Returns:
该函数总是返回 2。

static Cesium.LinearApproximation.interpolateOrderZero(x, xTable, yTable, yStride, result)Array.<number>

使用线性近似插值数值。
Name Type Description
x number 自变量,用于插值对应的因变量。
xTable Array.<number> 用于插值的自变量数组。该数组中的值必须按递增顺序排列,且同一值不得出现两次。
yTable Array.<number> 用于插值的因变量数组。对于时间1和时间2的一组三个因变量值(p,q,w),应如下排列:{p1, q1, w1, p2, q2, w2}。
yStride number yTable中对应于xTable每个自变量值的因变量值的数量。
result Array.<number> optional 一个现有数组,用于存储结果。
Returns:
插值后的值数组,如果提供了result参数,则返回该参数。
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.