Class: TimeIntervalCollectionPositionProperty

TimeIntervalCollectionPositionProperty

new TimeIntervalCollectionPositionProperty(referenceFrame)

It is both a TimeIntervalCollections Property and a PositionProperty.

Name Type Default Description
referenceFrame ReferenceFrame ReferenceFrame.FIXED optional

Determine the reference frame for the location.

Members

readonly definitionChangedEvent

Get the event thrown when the property definition changes. If calling getValue returns different results within the same time frame, it is considered that the definition has changed.

intervalsTimeIntervalCollection

Get the interval set.

readonly isConstantBoolean

Get a value indicating whether the attribute is a constant. If getValue always returns the same result in the current definition, then the property is considered a constant.

referenceFrameReferenceFrame

Obtain the reference frame for defining the location.

Default Value:
ReferenceFrame.FIXED;

Methods

equals(other){Boolean}

Compare this attribute with the provided attribute, return true if they are equal, otherwise return false.

Name Type Description
other Property optional

A property value.

Returns:
Type Description
Boolean If left and right are equal, it is true; otherwise, it is false.

getValue(time, result){Object}

Retrieve the attribute value of a specified time in a fixed reference frame.

Name Type Description
time JulianDate

The time to retrieve the attribute value.

result Object optional

The object in which the value is stored, if omitted, creates and returns a new instance.

Returns:
Type Description
Object If no result parameters are provided, use the modified result parameters or a new instance.

getValueInReferenceFrame(time, referenceFrame, result){Cartesian3}

Obtain the value of the attribute from the provided time and reference frame.

Name Type Description
time JulianDate

The time to retrieve the attribute value.

referenceFrame ReferenceFrame

Reference frame.

result Cartesian3 optional

If the object to store attributes is omitted, a new instance will be created and returned.

Returns:
Type Description
Cartesian3 The modified result parameters, or a new instance (if no result parameters are provided).