All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.cesium.VelocityOrientationProperty.kt Maven / Gradle / Ivy

// Automatically generated - do not modify!

@file:JsModule("cesium")

package cesium

/**
 * 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)
 * }));
 * ```
 * @see Online Documentation
 *
 * @constructor
 * @param [position] The position property used to compute the orientation.
 * @param [ellipsoid] The ellipsoid used to determine which way is up.
 *   Default value - [Ellipsoid.WGS84]
 * @see Online Documentation
 */
external class VelocityOrientationProperty(
    position: PositionProperty? = definedExternally,
    ellipsoid: Ellipsoid? = definedExternally,
) {
    /**
     * Gets a value indicating if this property is constant.
     * @see Online Documentation
     */
    val isConstant: Boolean

    /**
     * Gets the event that is raised whenever the definition of this property changes.
     * @see Online Documentation
     */
    val definitionChanged: Event

    /**
     * Gets or sets the position property used to compute orientation.
     * @see Online Documentation
     */
    var position: Property?

    /**
     * Gets or sets the ellipsoid used to determine which way is up.
     * @see Online Documentation
     */
    var ellipsoid: Property?

    /**
     * Gets the value of the property at the provided time.
     * @param [time] The time for which to retrieve the value.
     * @param [result] The object to store the value into, if omitted, a new instance is created and returned.
     * @return The modified result parameter or a new instance if the result parameter was not supplied.
     * @see Online Documentation
     */
    fun getValue(
        time: JulianDate? = definedExternally,
        result: Quaternion? = definedExternally,
    ): Quaternion
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy