new Cesium.SampledPositionProperty(referenceFrame, numberOfDerivatives)

Name Type Default Description
referenceFrame ReferenceFrame ReferenceFrame.FIXED optional The reference frame in which the position is defined.
numberOfDerivatives number 0 optional The number of derivatives that accompany each position; i.e. velocity, acceleration, etc...

Members

backwardExtrapolationDuration : number

获取或设定向后推断的时间量 在财产变成未定义之前。 0的值将永远推断出来.
Default Value: 0

backwardExtrapolationType : ExtrapolationType

获取或设定值时要执行的外推类型 在任何可用的样本之前要求提交.
Default Value: ExtrapolationType.NONE

readonly definitionChanged : Event

当此属性定义发生变化时, 获取该属性被提起的事件 . 如果给Value的电话被调回,定义就被认为有所改变 同时得出不同的结果.

forwardExtrapolationDuration : number

获取或设定前进的时间 属性变为未定义 。 0的值将永远推断出来.
Default Value: 0

forwardExtrapolationType : ExtrapolationType

获取或设定值时要执行的外推类型 在任何可用的样品之后要求.
Default Value: ExtrapolationType.NONE

readonly interpolationAlgorithm : InterpolationAlgorithm

Gets the interpolation algorithm to use when retrieving a value. Call setInterpolationOptions to set this.
Default Value: LinearApproximation

readonly interpolationDegree : number

Gets the degree of interpolation to perform when retrieving a value. Call setInterpolationOptions to set this.
Default Value: 1

readonly isConstant : boolean

获得一个表示该属性是否常数的值。 财产被视为 常数,如果获得Value 总是返回当前定义的相同结果.

numberOfDerivatives : number

此属性包含的衍生物数量; i.e 0. 0 表示正位, 1 表示速度等.
Default Value: 0

referenceFrame : ReferenceFrame

获得定义位置的参考框架.
Default Value: ReferenceFrame.FIXED;

Methods

addSample(time, position, derivatives)

添加新样本.
Name Type Description
time JulianDate 样本时间.
position Cartesian3 在规定时间的职位.
derivatives Array.<Cartesian3> optional 提供时间的衍生值阵列.

addSamples(times, positions, derivatives)

通过平行阵列添加多个样本.
Name Type Description
times Array.<JulianDate> An array of JulianDate instances where each index is a sample time.
positions Array.<Cartesian3> 包含 NT% 0 位置实例的数组,其中每个值对应提供的时间索引 .
derivatives Array.<Array> optional 一个阵列,其中每个值是包含相应的时间索引的衍生物的另一阵列.
Throws:

addSamplesPackedArray(packedSamples, epoch)

添加样本作为单个组合阵列,每个新样本以日期表示, 然后是相应价值和衍生物的包装表示.
Name Type Description
packedSamples Array.<number> 组装的样本.
epoch JulianDate optional 如果包装样本中的任何日期都是数字,它们就被认为是这个时代的抵消,以秒计.

equals(other)boolean

将此属性与所提供的属性进行比较并返回 -NT+0+Treal NT+1+,如果两者是相等的, NT+2+false NT+3+否则.
Name Type Description
other Property optional 其他财产.
Returns:
如果左右对等, 则使用 NT 0 true NT 1 , 否则使用 NT 2 false NT 3 .

getValue(time, result)Cartesian3|undefined

获取指定时间的位置 .
Name Type Default Description
time JulianDate JulianDate.now() optional The time for which to retrieve the value. If omitted, the current system time is used.
result Cartesian3 optional 如果省略,则创建并返回将数值存储为新实例的对象.
Returns:
未提供结果参数的修改结果参数或新实例 .

getValueInReferenceFrame(time, referenceFrame, result)Cartesian3|undefined

在规定的时间和规定参考框架中获取位置.
Name Type Description
time JulianDate 获取值的时间 .
referenceFrame ReferenceFrame 理想的参考结果Frame.
result Cartesian3 optional 如果省略,则创建并返回将数值存储为新实例的对象.
Returns:
未提供结果参数的修改结果参数或新实例 .

removeSample(time)boolean

如果存在,则在给定时间删除样本.
Name Type Description
time JulianDate 样本时间.
Returns:
如果时间样本被删除,则使用 NT+0 real NT+1 .

removeSamples(time)

删除给定时间间隔的所有样本.
Name Type Description
time TimeInterval 删除所有样本的时间间隔 .

setInterpolationOptions(options)

设置插入位置时使用的算法和度.
Name Type Description
options object optional 下列属性的对象 :
Name Type Description
interpolationAlgorithm InterpolationAlgorithm optional 新的内插算法. 如果未定义, 现有的财产将保持不变 .
interpolationDegree number optional 新内插学位. 如果未定义, 现有的财产将保持不变 .
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.