VelocityVectorProperty

new Cesium.VelocityVectorProperty(position, normalize)

根据提供的PositionProperty的速度计算出Cartesian3向量的Property
Name Type Default Description
position Property optional 用于计算速度的位置属性。
normalize Boolean true optional 是否归一化计算出的速度。
Example:
// 创建一个与布告牌旋转方向相匹配的速度的实体。
var position = new Cesium.SampledProperty();
position.addSamples(...);
var entity = viewer.entities.add({
  position : position,
  billboard : {
    image : 'image.png',
    alignedAxis : new Cesium.VelocityVectorProperty(position, true) // 指定的轴必须是单位向量。
  }
}));

Members

readonlydefinitionChanged : Event

获取每当更改或修改属性或子属性时引发的事件。

readonlyisConstant : Boolean

获取此属性是否恒定。
设置/获取是否归一化计算的速度矢量。
设置/获取用于计算速度矢量的位置属性。

Methods

equals(other)Boolean

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