ConstantPositionProperty

new Cesium.ConstantPositionProperty(value, referenceFrame)

其值相对于定义它的 ReferenceFrame 不变的 PositionProperty
Name Type Default Description
value Cartesian3 optional 属性值。
referenceFrame ReferenceFrame ReferenceFrame.FIXED optional 定义位置的参考系。

Members

获取每当此属性定义更改时触发的事件。 如果调用 getValue 对于相同时间返回不同结果,则认为定义已更改。
获取指示此属性是否为常量的值。如果 getValue 始终对当前定义返回相同结果,则认为属性是常量。
获取定义位置的参考系。
Default Value: ReferenceFrame.FIXED;

Methods

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

getValueInReferenceFrame(time, referenceFrame, result)Cartesian3

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