PositionProperty

abstract new Cesium.PositionProperty()

所有 Property 对象的接口,这些对象将世界位置定义为带有相关 ReferenceFrameCartesian3。 此类型定义接口,无法直接实例化。
See:

Members

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

readonly isConstant : boolean

获取一个值,指示此属性是否为常量。如果 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:
修改后的结果参数,如果未提供结果参数,则返回新实例。

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.