CompositePositionProperty

new Cesium.CompositePositionProperty(referenceFrame)

同时也是 PositionPropertyCompositeProperty
Name Type Default Description
referenceFrame ReferenceFrame ReferenceFrame.FIXED optional 定义位置的参考系。

Members

获取每当此属性定义更改时触发的事件。 每当使用与当前值不同的数据调用 setValue 时定义都会更改。
获取间隔集合。
获取指示此属性是否为常量的值。如果 getValue 始终对当前定义返回相同结果,则认为属性是常量。
获取或设置此位置呈现自身的参考系。 组成此对象的每个 PositionProperty 都有自己的参考系, 因此此属性仅公开供客户端使用的"首选"参考系。

Methods

将此属性与提供的属性进行比较,如果相等则返回 true,否则返回 false
Name Type Description
other Property optional 另一个属性。
Returns:
如果左右相等则为 true,否则为 false
获取固定帧中给定时间处的属性值。
Name Type Default Description
time JulianDate JulianDate.now() optional 要获取值的时间。如果省略,则使用当前系统时间。
result Cartesian3 optional 存储值的对象,如果省略,则创建并返回新实例。
Returns:
修改后的结果参数,如果未提供结果参数则为新实例。

getValueInReferenceFrame(time, referenceFrame, result)Cartesian3|undefined

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