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.
const position = new Cesium.SampledProperty();
position.addSamples(...);
const entity = viewer.entities.add({
  position : position,
  billboard : {
    image : 'image.png',
    alignedAxis : new Cesium.VelocityVectorProperty(position, true) // alignedAxis must be a unit vector
  }
}));

Members

获取此属性的定义发生更改时引发的事件。
获取一个值,该值指示此属性是否为 constant。
获取或设置此属性是否生成的向量 将进行标准化或不标准化。
获取或设置position 属性。

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:
修改后的结果参数或者,如果未提供 result 参数,则为新实例。
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.