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
}
}));
Content copied to clipboard
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
Functions
Link copied to clipboard
fun getValue(time: JulianDate? = definedExternally, result: Cartesian3? = definedExternally): Cartesian3
Gets the value of the property at the provided time.