VelocityVectorProperty

new Cesium.VelocityVectorProperty(position, normalize)

一个Property,其计算结果为Cartesian3向量 基于提供的PositionProperty的速度。
Name Type Default Description
position PositionProperty optional 用于计算速度的位置属性。
normalize Boolean true optional 是否规范化计算的速度矢量。
Example:
//Create an entity with a billboard rotated to match its velocity.
var position = new Cesium.SampledProperty();
position.addSamples(...);
var entity = viewer.entities.add({
  position : position,
  billboard : {
    image : 'image.png',
    alignedAxis : new Cesium.VelocityVectorProperty(position, true) // alignedAxis must be a unit vector
  }
}));

Members

readonly definitionChanged : Event

获取每当此属性的定义更改时引发的事件。

readonly isConstant : Boolean

获取一个值,该值指示此属性是否为常量。
获取或设置此属性生成的向量 是否将被规范化。
获取或设置用于计算速度向量的位置属性。

Methods

equals(other)Boolean

将此属性与提供的属性进行比较并返回 如果相等,则为true,否则为false
Name Type Description
other Property optional 其他财产。
Returns:
如果左右相等,则为true,否则为false
获取属性在提供的时间的值。
Name Type Description
time JulianDate optional 检索值的时间。
result Cartesian3 optional 要将值存储到其中的对象(如果省略),将创建并返回一个新实例。
Returns:
修改后的结果参数或新实例(如果未提供结果参数)。