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