LinearApproximation

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.