new Cesium.ConstantSpline(value)

用于评价恒值的图示。 虽然这跟随 Spline 接口, 它不维持内部的数组,因为它的价值永远不会改变.
Name Type Description
value number | Cartesian3 | Quaternion 线条评价的恒定值 .
Example:
const position = new Cesium.Cartesian3(1.0, 2.0, 3.0);
const spline = new Cesium.ConstantSpline(position);

const p0 = spline.evaluate(0.0);
See:

Members

readonly value : number|Cartesian3|Quaternion

线条评价的恒定值 .

Methods

clampTime(time)number

将给定的时间压缩到线条覆盖的期间.
Name Type Description
time number The time.
Returns:
时间,夹在动画时期.

evaluate(time, result)number|Cartesian3|Quaternion

在特定时间评估曲线.
Name Type Description
time number 评估曲线的时间.
result Cartesian3 | Quaternion optional 存储结果的对象 .
Returns:
修改后的结果参数或常数示意图所代表的值.

findTimeInterval(time)

在 NT 2 times NT 3 中查找索引 NT 0 i NT 1 ,使参数如此 -NT+0 时间 NT+1 时间间隔 NT+2 [时间[i],时间[i+1]] NT+3 . 由于一个恒定的示意图没有内部时间数组,这将产生一个错误.
Name Type Description
time number The time.
Throws:
  • DeveloperError : findTimeInterval cannot be called on a ConstantSpline.

wrapTime(time)number

将给定的时间包到线条覆盖的期间.
Name Type Description
time number The time.
Returns:
时间,包裹在更新的动画.
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.