Skip to content

KBE3D / KBCore / Cesium / VelocityOrientationProperty

类: VelocityOrientationProperty

A Property which evaluates to a Quaternion rotation based on the velocity of the provided PositionProperty.

示例

ts
//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)
}));

参数

The position property used to compute the orientation.

参数

The ellipsoid used to determine which way is up.

属性

isConstant

readonly isConstant: boolean

Gets a value indicating if this property is constant.


definitionChanged

readonly definitionChanged: Event

Gets the event that is raised whenever the definition of this property changes.


position

position: Property | undefined

Gets or sets the position property used to compute orientation.


ellipsoid

ellipsoid: Property | undefined

Gets or sets the ellipsoid used to determine which way is up.

方法

getValue()

getValue(time?: JulianDate, result?: Quaternion): Quaternion

Gets the value of the property at the provided time.

参数

time?

JulianDate

The time for which to retrieve the value. If omitted, the current system time is used.

result?

Quaternion

The object to store the value into, if omitted, a new instance is created and returned.

返回

Quaternion

The modified result parameter or a new instance if the result parameter was not supplied.


equals()

equals(other?: Property): boolean

Compares this property to the provided property and returns <code>true</code> if they are equal, <code>false</code> otherwise.

参数

other?

Property

The other property.

返回

boolean

true if left and right are equal, false otherwise.

构造函数

构造函数

new VelocityOrientationProperty(position?: PositionProperty, ellipsoid?: Ellipsoid): VelocityOrientationProperty

参数

position?

PositionProperty

ellipsoid?

Ellipsoid

返回

VelocityOrientationProperty

KBE3D @3.0.0 Copyright © 2024-present KBE3D