PositionProperty

abstract new Cesium.PositionProperty()

定义世界的所有 Property 对象的接口 location 作为 Cartesian3 与关联的 ReferenceFrame 进行转换。 此类型定义接口,不能直接实例化。
See:

Members

获取此属性的定义发生更改时引发的事件。 如果对 getValue 的调用会返回 getValue,则认为定义已更改 同一时间的不同结果。

readonly isConstant : boolean

获取一个值,该值指示此属性是否为 constant。 将属性视为 常量(如果 getValue 始终为当前定义返回相同的结果)。
获取定义位置的参考帧.

Methods

将此属性与提供的属性进行比较,并返回 true,否则为 false
Name Type Description
other Property optional 另一个属性。
Returns:
true如果左和右相等,否则false

getValue(time, result)Cartesian3|undefined

获取固定帧中给定时间的属性值。
Name Type Default Description
time JulianDate JulianDate.now() optional 检索值的时间。如果省略,则使用当前系统时间。
result Cartesian3 optional 要将值存储到的对象,如果省略,则会创建并返回一个新实例。
Returns:
修改后的结果参数,如果未提供 result 参数,则修改后为新实例。

getValueInReferenceFrame(time, referenceFrame, result)Cartesian3|undefined

获取在提供的时间和提供的参考框架中的属性值。
Name Type Description
time JulianDate 检索值的时间。
referenceFrame ReferenceFrame 结果所需的 referenceFrame。
result Cartesian3 optional 要将值存储到的对象,如果省略,则会创建并返回一个新实例。
Returns:
修改后的结果参数或者,如果未提供 result 参数,则为新实例。
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.