VelocityVectorProperty

external class VelocityVectorProperty(position: PositionProperty? = definedExternally, var normalize: Boolean = definedExternally)(source)

A Property which evaluates to a Cartesian3 vector based on the velocity of the provided PositionProperty.

//Create an entity with a billboard rotated to match its velocity.
const position = new SampledProperty();
position.addSamples(...);
const entity = viewer.entities.add({
position : position,
billboard : {
image : 'image.png',
alignedAxis : new VelocityVectorProperty(position, true) // alignedAxis must be a unit vector
}
}));

Parameters

position

The position property used to compute the velocity.

See also

Constructors

Link copied to clipboard
constructor(position: PositionProperty? = definedExternally, normalize: Boolean = definedExternally)

Properties

Link copied to clipboard

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

Link copied to clipboard

Gets a value indicating if this property is constant.

Link copied to clipboard

Whether to normalize the computed velocity vector. Default value - true

Link copied to clipboard

Gets or sets the position property used to compute the velocity vector.

Functions

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

Gets the value of the property at the provided time.