new VelocityVectorProperty(position, normalize)
一个Property,根据所提供的PositionProperty的速度求值为一个Cartesian3向量。
| Name | Type | Default | Description |
|---|---|---|---|
position |
Property |
可选
用于计算速度的位置属性。 |
|
normalize |
Boolean | true |
可选
是否将计算出的速度矢量标准化。 |
Example
//Create an entity with a billboard rotated to match its velocity.
var position = new SuperMap3D.SampledProperty();
position.addSamples(...);
var entity = viewer.entities.add({
position : position,
billboard : {
image : 'image.png',
alignedAxis : new SuperMap3D.VelocityVectorProperty(position, true) // alignedAxis must be a unit vector
}
}));
Members
-
readonly definitionChangedEvent
-
获取当属性定义发生变化时抛出的事件。
-
readonly isConstantBoolean
-
获取表示该属性是否为常数的值。
-
normalizeBoolean
-
获取或设置此属性产生的向量是否将被标准化。
-
positionProperty
-
获取或设置用于计算速度矢量的位置属性。
Methods
-
equals(other){Boolean}
-
将此属性与所提供的属性进行比较,如果相等则返回
true,否则返回false。Name Type Description otherProperty 可选 一个属性值。
Returns:
Type Description Boolean 如果左右相等则为 true,否则为false。 -
getValue(time, result){Cartesian3}
-
获取指定时间的属性值。
Name Type Description timeJulianDate 可选 检索值的时间。
resultCartesian3 可选 要存储数值的对象,如果省略,则会创建一个新实例并返回。
Returns:
Type Description Cartesian3 修改后的结果参数,或一个新实例(如果未提供结果参数)。