A
Property which evaluates to a Quaternion rotation
based on the velocity of the provided PositionProperty.
| Name | Type | Default | Description |
|---|---|---|---|
position |
PositionProperty | optional 用于计算方向的位置属性 . | |
ellipsoid |
Ellipsoid |
Ellipsoid.default
|
optional The ellipsoid used to determine which way is up. |
Example:
//Create an entity with position and orientation.
const position = new Cesium.SampledProperty();
position.addSamples(...);
const entity = viewer.entities.add({
position : position,
orientation : new Cesium.VelocityOrientationProperty(position)
}));
Members
Methods
将此属性与所提供的属性进行比较并返回
-NT+0+Treal NT+1+,如果两者是相等的, NT+2+false NT+3+否则.
| Name | Type | Description |
|---|---|---|
other |
Property | optional 其他财产. |
Returns:
如果左右对等, 则使用 NT 0 true NT 1 , 否则使用 NT 2 false NT 3 .
getValue(time, result) → Quaternion
在提供的时间获得财产的价值.
| Name | Type | Default | Description |
|---|---|---|---|
time |
JulianDate |
JulianDate.now()
|
optional The time for which to retrieve the value. If omitted, the current system time is used. |
result |
Quaternion | optional 如果省略,则创建并返回将数值存储为新实例的对象. |
Returns:
未提供结果参数的修改结果参数或新实例 .