VelocityOrientationProperty

external class VelocityOrientationProperty(position: PositionProperty? = definedExternally, ellipsoid: Ellipsoid? = definedExternally)(source)

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

//Create an entity with position and orientation.
const position = new SampledProperty();
position.addSamples(...);
const entity = viewer.entities.add({
position : position,
orientation : new VelocityOrientationProperty(position)
}));

Parameters

position

The position property used to compute the orientation.

ellipsoid

The ellipsoid used to determine which way is up. Default value - Ellipsoid.default

See also

Constructors

Link copied to clipboard
constructor(position: PositionProperty? = definedExternally, ellipsoid: Ellipsoid? = definedExternally)

Properties

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

Gets a value indicating if this property is constant.

Link copied to clipboard

Gets or sets the position property used to compute orientation.

Functions

Link copied to clipboard
fun getValue(time: JulianDate? = definedExternally, result: Quaternion? = definedExternally): Quaternion

Gets the value of the property at the provided time.