SampledPositionProperty

external class SampledPositionProperty(var referenceFrame: ReferenceFrame = definedExternally, var numberOfDerivatives: Int = definedExternally)(source)

A SampledProperty which is also a PositionProperty.

See also

Constructors

Link copied to clipboard
constructor(referenceFrame: ReferenceFrame = definedExternally, numberOfDerivatives: Int = definedExternally)

Types

Link copied to clipboard

Properties

Link copied to clipboard

Gets or sets the amount of time to extrapolate backward before the property becomes undefined. A value of 0 will extrapolate forever.

Link copied to clipboard

Gets or sets the type of extrapolation to perform when a value is requested at a time before any available samples.

Link copied to clipboard

Gets the event that is raised whenever the definition of this property changes. The definition is considered to have changed if a call to getValue would return a different result for the same time.

Link copied to clipboard

Gets or sets the amount of time to extrapolate forward before the property becomes undefined. A value of 0 will extrapolate forever.

Link copied to clipboard

Gets or sets the type of extrapolation to perform when a value is requested at a time after any available samples.

Link copied to clipboard

Gets the interpolation algorithm to use when retrieving a value. Call setInterpolationOptions to set this.

Link copied to clipboard

Gets the degree of interpolation to perform when retrieving a value. Call setInterpolationOptions to set this.

Link copied to clipboard

Gets a value indicating if this property is constant. A property is considered constant if getValue always returns the same result for the current definition.

Link copied to clipboard

The number of derivatives that accompany each position; i.e. velocity, acceleration, etc... Default value - 0

Link copied to clipboard

The reference frame in which the position is defined. Default value - ReferenceFrame.FIXED

Functions

Link copied to clipboard
fun addSample(time: JulianDate, position: Cartesian3, derivatives: ReadonlyArray<Cartesian3>? = definedExternally)

Adds a new sample.

Link copied to clipboard
fun addSamples(times: ReadonlyArray<JulianDate>, positions: ReadonlyArray<Cartesian3>, derivatives: ReadonlyArray<ReadonlyArray<Any>>? = definedExternally)

Adds multiple samples via parallel arrays.

Link copied to clipboard
fun addSamplesPackedArray(packedSamples: ReadonlyArray<Double>, epoch: JulianDate? = definedExternally)

Adds samples as a single packed array where each new sample is represented as a date, followed by the packed representation of the corresponding value and derivatives.

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

Gets the position at the provided time.

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

Gets the position at the provided time and in the provided reference frame.

Link copied to clipboard

Removes a sample at the given time, if present.

Link copied to clipboard

Removes all samples for the given time interval.

Link copied to clipboard

Sets the algorithm and degree to use when interpolating a position.